You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "JFinis (via GitHub)" <gi...@apache.org> on 2024/02/12 14:40:16 UTC
[I] The hour partition transform overflows for large dates [iceberg]
JFinis opened a new issue, #9713:
URL: https://github.com/apache/iceberg/issues/9713
### Apache Iceberg version
1.4.3 (latest release)
### Query engine
Spark
### Please describe the bug 🐞
The hour partition transform returns an `int`. For very large dates, this function will overflow.
Consequently this partition transform is not order preserving, resulting in incorrect partition pruning.
Consider the following Spark SQL:
```
CREATE TABLE t (x timestamp) PARTITIONED BY(hour(x))
TBLPROPERTIES(`format-version`=2);
INSERT INTO iceberg.sample VALUES(timestamp '250000-01-01 00:00:00');
SELECT * FROM iceberg.sample WHERE x > timestamp '2020-01-01 00:00:00';
```
The last query will incorrect return an empty result, as the `hour(timestamp '250000-01-01 00:00:00')` is `-2120780968`, so the partition for this row incorrectly is a very low date.
Thus, the partition pruning will incorrectly prune this partition in the query, as it considers it smaller than a 2020 date.
--
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] The hour partition transform overflows for large dates [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9713:
URL: https://github.com/apache/iceberg/issues/9713#issuecomment-2448717960
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
--
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] The hour partition transform overflows for large dates [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9713: The hour partition transform overflows for large dates
URL: https://github.com/apache/iceberg/issues/9713
--
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] The hour partition transform overflows for large dates [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9713:
URL: https://github.com/apache/iceberg/issues/9713#issuecomment-2415379770
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
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