voonhous commented on code in PR #18540:
URL: https://github.com/apache/hudi/pull/18540#discussion_r3143060057
##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/spark/sql/avro/HoodieSparkSchemaConverters.scala:
##########
@@ -278,10 +282,22 @@ object HoodieSparkSchemaConverters extends
SparkAdapterSupport {
metadataBuilder.putString(HoodieSchema.TYPE_METADATA_FIELD,
HoodieSchema.Blob.TYPE_DESCRIPTOR)
}
val metadata = metadataBuilder.build()
- StructField(f.name(), schemaType.dataType, schemaType.nullable,
metadata)
+ // For BLOB: force nullable-everywhere at the Spark type layer. The
RFC-100
Review Comment:
Uhm, KIV this please, i have encountered quite a bit of errors around
this.This is not a 1-day ordeal. Let's take more time to look into this after
1.2 as i've found that Spark3.3,3.4,3.5 and 4.0 have different schema
validation/check flows.
And i have encountered quite abit of errors around this error which i had to
fix and patch.
Agree that we should file an issue here and find the best way forward.
--
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]