adiranjan25 commented on PR #19164:
URL: https://github.com/apache/iceberg/pull/19164#issuecomment-7289149184

   I performed an additional independent validation of the legacy projection 
APIs against the new expression-based projection implementation at commit 
`a9ab30a5c`.
   
   For an integer truncate transform with width `1000` and the source predicate 
`value < 0`, I observed:
   
   ```text
   LEGACY_INCLUSIVE=null
   LEGACY_STRICT=null
   
   NEW_INCLUSIVE=(ref(name="value_trunc") <= -1000
       or ref(name="value_trunc") == 2147483296)
   
   NEW_STRICT=(not_null(ref(name="value_trunc"))
       and (ref(name="value_trunc") < 0
       or ref(name="value_trunc") == 2147483296))
   ```
   
   The targeted regression test passed under JDK 17, including validation that 
the wrapped partition produced from `Integer.MIN_VALUE` satisfies both the new 
inclusive and strict projections.
   
   I also checked the internal production call sites and confirmed that 
`Projections` and `ResidualEvaluator` have migrated to the expression-based API.
   
   One non-blocking API compatibility question: should we explicitly document 
that the legacy `project()` and `projectStrict()` methods may now return `null` 
when a correct projection requires a compound expression?
   
   This appears to be a conservative fallback rather than a correctness defect, 
assuming callers handle unavailable projections appropriately. Explicit 
documentation would help external consumers understand the behavior and migrate 
to the expression-based overload where appropriate.
   
   The targeted validation completed successfully.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to