github-actions[bot] opened a new issue, #676:
URL: https://github.com/apache/wayang/issues/676

   may need better support for CASTing in the future. See sqlCast() in this 
file.
   
   
https://github.com/apache/wayang/blob/6172a5f464f5feb3e16f2fdbd52a63584ad2b861/wayang-api/wayang-api-sql/src/main/java/org/apache/wayang/api/sql/calcite/converter/functions/FilterPredicateImpl.java#L59
   
   ```java
   
                   case OR -> input.stream().anyMatch(obj -> 
Boolean.class.cast(obj).booleanValue());
                   case MINUS -> widenToDouble.apply(input.get(0)) - 
widenToDouble.apply(input.get(1));
                   case PLUS -> widenToDouble.apply(input.get(0)) + 
widenToDouble.apply(input.get(1));
                   // TODO: may need better support for CASTing in the future. 
See sqlCast() in this file.
                   case CAST -> input.get(0) instanceof Number ? 
widenToDouble.apply(input.get(0)) : ensureComparable.apply(input.get(0));
                   case SEARCH -> {
                       if (input.get(0) instanceof final ImmutableRangeSet 
range) {
                           assert input.get(1) instanceof Comparable
   
   ```
   
   574e6ce855e095df10910a104022003f75d4c82c


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

Reply via email to