ConeyLiu opened a new pull request, #8244:
URL: https://github.com/apache/iceberg/pull/8244
ExpressionToSearchArgument should only convert those reference terms.
Otherwise, we will get incorrect conversions or exceptions. For example,
converting `equal(year("ts"), 10)`:
```java
java.lang.ClassCastException: java.lang.Integer cannot be cast to
java.lang.Long
at
org.apache.iceberg.orc.ExpressionToSearchArgument.literal(ExpressionToSearchArgument.java:329)
at
org.apache.iceberg.orc.ExpressionToSearchArgument.lambda$eq$13(ExpressionToSearchArgument.java:209)
at
org.apache.iceberg.orc.ExpressionToSearchArgument.convert(ExpressionToSearchArgument.java:52)
at
org.apache.iceberg.orc.TestExpressionToSearchArgument.testExpressionContainsNonReferenceTerm(TestExpressionToSearchArgument.java:492)
```
--
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]