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:51:41 UTC

[I] Date partition transforms are underspecified [iceberg]

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

   ### Apache Iceberg version
   
   1.4.3 (latest release)
   
   ### Query engine
   
   Other
   
   ### Please describe the bug 🐞
   
   The partition transforms are underspecified in the Iceberg specification:
   
   
   - hour, day, month, year: It is not specified how these functions should round and handle negative values. E.g., year specifies "Extract a date or timestamp year, as years from 1970". Now assume the date 1969-12-31. How many years is this date from 1970? It is one day from 1970, so the answer is "something between -1 and 0". The correct answer per the implementation is -1. The spec should reflect this. Same for all the other functions.
   
   - `hour` can overflow and will produce negative results for very large dates, as seperately reported [here](https://github.com/apache/iceberg/issues/9713). This is likely unintended, as it makes the function no longer be order preserving. Yet, it is the way it is. Either it has to stay this way, or it should be fixed. In any case, it must be specified what this function is supposed to return for timestamps or dates which are more than 2^31 hours away from the epoch.
   
   


-- 
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] Date partition transforms are underspecified [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9714:
URL: https://github.com/apache/iceberg/issues/9714#issuecomment-2418196486

   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


Re: [I] Date partition transforms are underspecified [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9714:
URL: https://github.com/apache/iceberg/issues/9714#issuecomment-2448718030

   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] Date partition transforms are underspecified [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9714: Date partition transforms are underspecified
URL: https://github.com/apache/iceberg/issues/9714


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