goalzz85 commented on issue #548:
URL: https://github.com/apache/iceberg-python/issues/548#issuecomment-2428665724

   ```python
   from pyiceberg.transforms import BucketTransform
   from pyiceberg.types import IntegerType
   
   id = 50
   
   t = BucketTransform(50)
   bucket_int_func = t.transform(IntegerType())
   bucket_num = bucket_int_func(id)
   
   print(bucket_num)
   ```
   
   I looked into the source code again and found a way to calculate the bucket 
number from the ID.
   
   @frankliee 


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