the-other-tim-brown commented on code in PR #11154:
URL: https://github.com/apache/hudi/pull/11154#discussion_r1608646457


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieSchemaUtils.scala:
##########
@@ -93,14 +93,14 @@ object HoodieSchemaUtils {
         // in the table's one we want to proceed aligning nullability 
constraints w/ the table's schema
         // Also, we promote types to the latest table schema if possible.
         val shouldCanonicalizeSchema = opts.getOrElse(CANONICALIZE_SCHEMA.key, 
CANONICALIZE_SCHEMA.defaultValue.toString).toBoolean
+        val shouldReconcileSchema = 
opts.getOrElse(DataSourceWriteOptions.RECONCILE_SCHEMA.key(),
+          
DataSourceWriteOptions.RECONCILE_SCHEMA.defaultValue().toString).toBoolean
         val canonicalizedSourceSchema = if (shouldCanonicalizeSchema) {
-          canonicalizeSchema(sourceSchema, latestTableSchema, opts)
+          canonicalizeSchema(sourceSchema, latestTableSchema, opts, 
!shouldReconcileSchema)

Review Comment:
   @jonvex advised to do this. I think it is because reconcile is schema on 
read?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to