1
0

[HUDI-2357] MERGE INTO doesn't work for tables created using CTAS (#3534)

This commit is contained in:
pengzhiwei
2021-08-26 16:54:41 +08:00
committed by GitHub
parent be57e42200
commit cc5256a7d8

View File

@@ -193,7 +193,8 @@ object InsertIntoHoodieTableCommand extends Logging {
s"[${insertPartitions.keys.mkString(" " )}]" +
s" not equal to the defined partition in table[${table.partitionColumnNames.mkString(",")}]")
}
val parameters = withSparkConf(sparkSession, table.storage.properties)() ++ extraOptions
val options = table.storage.properties ++ extraOptions
val parameters = withSparkConf(sparkSession, options)()
val tableType = parameters.getOrElse(TABLE_TYPE.key, TABLE_TYPE.defaultValue)
@@ -201,7 +202,7 @@ object InsertIntoHoodieTableCommand extends Logging {
val path = getTableLocation(table, sparkSession)
val tableSchema = table.schema
val options = table.storage.properties
val primaryColumns = HoodieOptionConfig.getPrimaryColumns(options)
val keyGenClass = if (primaryColumns.nonEmpty) {