badalprasadsingh commented on code in PR #524: URL: https://github.com/apache/iceberg-go/pull/524#discussion_r2261968740
########## schema_conversions.go: ########## @@ -30,33 +30,35 @@ func partitionTypeToAvroSchema(t *StructType) (avro.Schema, error) { var sc avro.Schema switch typ := f.Type.(type) { case Int32Type: - sc = internal.IntSchema + sc = internal.NullableSchema(internal.IntSchema) Review Comment: This change ensures the schema allows nullable data. Without it, if the entire column contains `null` values, it triggers the error: `PartitionData: col: avro: *avro.null`. Wrapping inside `internal.NullableSchema` prevents this issue. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org