jqin61 commented on code in PR #353:
URL: https://github.com/apache/iceberg-python/pull/353#discussion_r1478509127


##########
pyiceberg/manifest.py:
##########
@@ -308,6 +308,7 @@ def data_file_with_partition(partition_type: StructType, 
format_version: Literal
             field_id=field.field_id,
             name=field.name,
             
field_type=partition_field_to_data_file_partition_field(field.field_type),
+            required=False

Review Comment:
   Dafault value is True, which breaks the avro writer encoding manifestenrty 
when the partition value is null. (Because the attribute of required being True 
in the nested field of the avro schema will be used by the writer to infer and 
choose non-optional field writer which could not encode None value.)
   
   This is for encoding only, so set it to False for now. 
   
   TODO: Set it properly according to table schema.



-- 
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

Reply via email to