You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/07/19 15:03:18 UTC

[GitHub] [iceberg] RussellSpitzer edited a comment on issue #2838: Bucket partition transformation from timestamp throws error

RussellSpitzer edited a comment on issue #2838:
URL: https://github.com/apache/iceberg/issues/2838#issuecomment-882620963


   https://github.com/apache/iceberg/blob/0c50b2074cd5dad59bbcb4b4599ec3ae11a34b49/api/src/main/java/org/apache/iceberg/transforms/Bucket.java#L55-L58
   
   Issue is probably that we are using internally a BucketLong, but advertising to Spark that we require a Timestamp Type. Spark gives us a timestamp and we bail because we try to then do a raw cast to apply the function. Can you test with "LongType" instead? We probably will have to patch this though ... There are no tests in TestIcebergSpark for these datatypes.


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