You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "laithalzyoud (via GitHub)" <gi...@apache.org> on 2023/06/15 13:42:05 UTC

[GitHub] [iceberg] laithalzyoud opened a new issue, #7849: PartitionSpec field name should be consistent for bucket and trunc in $partitions metadata table

laithalzyoud opened a new issue, #7849:
URL: https://github.com/apache/iceberg/issues/7849

   ### Feature Request / Improvement
   
   Hello!
   
   This is just a small improvement request to make field names in [PartitionSpec](https://github.com/apache/iceberg/blob/master/api/src/main/java/org/apache/iceberg/PartitionSpec.java#L519-L521) and [UpdatePartitionSpec](https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/BaseUpdatePartitionSpec.java#L516-L518) consistent. 
   
   Currently if you query the $partitions metadata table, you get the partition name as `col_bucket` if the partition spec was never evolved and you get `col_bucket_4` if the the partition spec evolved for the same partition. This inconsistency make code changes necessary on the client side if they use the $partitions table to handle both cases.
   
   The suggestion is to make the field name always `sourceName + "_bucket_" + numBuckets` for the base PartitionSpec to make it consistent 👍 
   
   ### Query engine
   
   None


-- 
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-unsubscribe@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org