You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "sankalpsthakur (via GitHub)" <gi...@apache.org> on 2026/09/18 07:25:01 UTC

[PR] API: Avoid invalid identity projection of transform predicates [iceberg]

sankalpsthakur opened a new pull request, #18160:
URL: https://github.com/apache/iceberg/pull/18160

   Closes #15502
   
   Identity partition projection copied literals from transform predicates (for example `hours(ts) = 490674`) onto the identity partition field. Binding that predicate to a timestamp partition type throws `ValidationException` during scan planning, so queries fail instead of scanning the matching files.
   
   This follows the existing `BoundTransform` handling in `Bucket`, `Truncate`, and `TimeTransform`: project only when the bound transform is identity, otherwise return null so inclusive projection falls back to `alwaysTrue` and strict projection to `alwaysFalse`. Non-reference terms such as `BoundExtract` are also skipped.
   
   This revives the approach from #16074 / #17261 (approved, then stale-closed), using `ProjectionUtil.projectTransformPredicate`.
   
   I have an ICLA on file with the Apache Software Foundation.
   
   ---
   **AI Disclosure**
   - Model: Cursor Grok 4.6
   - Platform/Tool: Cursor
   - Human Oversight: fully reviewed
   - Prompt Summary: Find one high-priority Apache Iceberg issue, implement a small fix on the sankalpsthakur/iceberg fork, and open a PR to apache/iceberg.


-- 
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: [PR] API: Avoid invalid identity projection of transform predicates [iceberg]

Posted by "github-actions[bot] (via GitHub) via issues" <is...@iceberg.apache.org>.
github-actions[bot] commented on PR #18160:
URL: https://github.com/apache/iceberg/pull/18160#issuecomment-7330412109

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
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: [PR] API: Avoid invalid identity projection of transform predicates [iceberg]

Posted by "sankalpsthakur (via GitHub)" <gi...@apache.org>.
sankalpsthakur commented on PR #18160:
URL: https://github.com/apache/iceberg/pull/18160#issuecomment-6025758746

   @ebyhr @nastra could you review this when you have time? uros-b suggested you two for a second look.
   


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