rahil-c commented on code in PR #18540:
URL: https://github.com/apache/hudi/pull/18540#discussion_r3142854605
##########
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:
@yihua @voonhous I really feel like we should revisit the BLOB schema
definition around what fields should be non-nullable, as this seems to cause
complexities in this and others PRs as well as UX of having to provide values
for sub fields that may not be needed during write time.
--
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]