Skip to content

Commit 82b92fe

Browse files
authored
Update CopyContext.scala
1 parent 062d91c commit 82b92fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • hologres-connector-spark-base/src/main/scala/com/alibaba/hologres/spark/sink/copy

hologres-connector-spark-base/src/main/scala/com/alibaba/hologres/spark/sink/copy/CopyContext.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.alibaba.hologres.spark.sink.copy
22

33
import com.alibaba.hologres.client.copy.RecordOutputStream
4+
import com.alibaba.hologres.client.copy.CopyMode
45
import com.alibaba.hologres.client.model.TableSchema
56
import com.alibaba.hologres.org.postgresql.PGProperty
67
import com.alibaba.hologres.org.postgresql.copy.CopyManager
@@ -103,7 +104,7 @@ class CopyContext {
103104
throw new RuntimeException(e)
104105
}
105106
}
106-
if (hologresConfigs.copyMode == CopyMode.BULK_LOAD_ON_CONFLICT) {
107+
if (configs.copyMode == CopyMode.BULK_LOAD_ON_CONFLICT) {
107108
try {
108109
{val stmt = conn.createStatement()
109110
stmt.execute("set hg_experimental_copy_enable_on_conflict = on;")

0 commit comments

Comments
 (0)