ihuzenko commented on a change in pull request #1610: [CALCITE-3525] 
RexSimplify: eliminate redundant rex calls in OR
URL: https://github.com/apache/calcite/pull/1610#discussion_r358251168
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/rex/RexExecutable.java
 ##########
 @@ -85,7 +85,7 @@ public void reduce(RexBuilder rexBuilder, List<RexNode> 
constExps,
         reducedValues.add(
             rexBuilder.makeLiteral(value.right, value.left.getType(), true));
       }
-    } catch (RuntimeException e) {
+    } catch (RuntimeException | AssertionError e) {
 
 Review comment:
   I definitely won't add support for each type of literal, if you're not ok 
with ```AssertionError```, I can throw ```IllegalArgumentException``` instead 
from ```rexBuilder.makeLiteral(...)```. 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to