geruh commented on issue #2166:
URL: 
https://github.com/apache/iceberg-python/issues/2166#issuecomment-3029217921

   Currently, this behavior can also be observed with partitioning, where it's 
possible to drop a field used for partitioning and then define a PartitionSpec 
using a non-existent column name. A part of this fix can be to add validation 
during the construction of new table metadata to ensure that the schema 
includes all fields referenced in the sort order and partitioning.
   
   We could potentially implement a check similar to the compatibility methods 
shown here:
   
https://github.com/apache/iceberg/blob/b38573dcfb4a5467a70c28573a2d39874718a2a1/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1557
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to