[HUDI-6236] write hive_style_partitioning_enable to table config in D…#8752
[HUDI-6236] write hive_style_partitioning_enable to table config in D…#8752danny0405 merged 1 commit intoapache:masterfrom
Conversation
|
@boneanxs for visibility |
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/DeltaSync.java
Show resolved
Hide resolved
|
Also, we may need add an improvement for how tables are initialised in the future so that all entrypoints will use a common Instead of the current implementation where all entrypoints are dictating their own means of creating a Once that is done, we will also need a configuration validation component to check the configs of a table. |
|
According the the code in HoodieSparkSqlWriter, there are few more config when building HoodieTableConfig. I think it's better we can align DeltaSync according to HoodieSparkSqlWriter. BTW: totally agree, we should use a unique entrypoint for this HoodieTableConfig builder. |
Missing configs that are in In initializeEmptyTable()In readFromSource() |
…eltaStreamer entrypoints
|
Apologies again. Fixed the checkstyle violations and re-executed a mvn clean install on my end. |
|
@hudi-bot run azure |
…eltaStreamer entrypoints
Change Logs
In Hudi 0.10.X, Hudi assumes that hoodie table properties contains the
hoodie.datasource.write.hive_style_partitioningconfiguration value.As such
hoodie.propertiesshould contain this config for all Hudi tables created by Hudi > 0.10.X. However, in DeltaStreamer entrypoints, this configuration is not written tohoodie.properties, which will cause incorrect query results via Spark.This PR fixes the aforementioned assumptions by ensuring that
hoodie.datasource.write.hive_style_partitioningis written tohoodie.properties.Impact
Describe any public API or user-facing feature change or any performance impact.
None
Risk level (write none, low medium or high below)
If medium or high, explain what verification was done to mitigate the risks.
Low
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist