[HUDI-3100] Add config for hive conditional sync (#4440)
This commit is contained in:
@@ -495,6 +495,16 @@ object DataSourceWriteOptions {
|
||||
.withDocumentation("‘INT64’ with original type TIMESTAMP_MICROS is converted to hive ‘timestamp’ type. " +
|
||||
"Disabled by default for backward compatibility.")
|
||||
|
||||
/**
|
||||
* Flag to indicate whether to use conditional syncing in HiveSync.
|
||||
* If set true, the Hive sync procedure will only run if partition or schema changes are detected.
|
||||
* By default true.
|
||||
*/
|
||||
val HIVE_CONDITIONAL_SYNC: ConfigProperty[String] = ConfigProperty
|
||||
.key("hoodie.datasource.hive_sync.conditional_sync")
|
||||
.defaultValue("false")
|
||||
.withDocumentation("Enables conditional hive sync, where partition or schema change must exist to perform sync to hive.")
|
||||
|
||||
val HIVE_TABLE_PROPERTIES: ConfigProperty[String] = ConfigProperty
|
||||
.key("hoodie.datasource.hive_sync.table_properties")
|
||||
.noDefaultValue()
|
||||
|
||||
Reference in New Issue
Block a user