You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "puchengy (via GitHub)" <gi...@apache.org> on 2023/11/14 00:37:47 UTC

[I] Implement bucket transform hash() function [iceberg-python]

puchengy opened a new issue, #145:
URL: https://github.com/apache/iceberg-python/issues/145

   ### Feature Request / Improvement
   
   Currently bucket transform is implemented as 
   ```
   class BucketTransform(Transform[S, int]):
   ...
       def hash(self, value: S) -> int:
           raise NotImplementedError()
   ...
   ```
   is not implemented. We need this function to compute bucket id for an Iceberg table that read in as a pyarrow table.


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


Re: [I] Implement bucket transform hash() function [iceberg-python]

Posted by "puchengy (via GitHub)" <gi...@apache.org>.
puchengy commented on issue #145:
URL: https://github.com/apache/iceberg-python/issues/145#issuecomment-1809358324

   Maybe
   ```
   def transform(self, source: IcebergType, bucket: bool = True) -> Callable[[Optional[Any]], Optional[int]]:
   ```
   Can do the work?


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

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


Re: [I] Implement bucket transform hash() function [iceberg-python]

Posted by "puchengy (via GitHub)" <gi...@apache.org>.
puchengy closed issue #145: Implement bucket transform hash() function
URL: https://github.com/apache/iceberg-python/issues/145


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

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