This is an automated email from the ASF dual-hosted git repository.

danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b3e0762058 [HUDI-8173] Default value of hoodie.avro.schema.validate 
silently getting updated if not passed explicitly (#12606)
6b3e0762058 is described below

commit 6b3e076205884e69e4ae8c8980026abaae74d03c
Author: Vova Kolmakov <[email protected]>
AuthorDate: Fri Jan 10 09:18:38 2025 +0700

    [HUDI-8173] Default value of hoodie.avro.schema.validate silently getting 
updated if not passed explicitly (#12606)
    
    Co-authored-by: Vova Kolmakov <[email protected]>
---
 .../src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
 
b/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
index 6ae1158c221..1c411db1a15 100644
--- 
a/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
+++ 
b/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
@@ -638,7 +638,7 @@ class HoodieSparkSqlWriterInternal {
       // force disable schema validate, now we support schema evolution, no 
need to do validate
       "false"
     } else {
-      
parameters.getOrElse(HoodieWriteConfig.AVRO_SCHEMA_VALIDATE_ENABLE.key(), 
"true")
+      
parameters.getOrElse(HoodieWriteConfig.AVRO_SCHEMA_VALIDATE_ENABLE.key(), 
HoodieWriteConfig.AVRO_SCHEMA_VALIDATE_ENABLE.defaultValue())
     }
     // correct internalSchema, internalSchema should contain hoodie metadata 
columns.
     val correctInternalSchema = internalSchemaOpt.map { internalSchema =>

Reply via email to