You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/09/10 09:07:15 UTC
[GitHub] [calcite] jinxing64 commented on a change in pull request #1448:
[CALCITE-3332] Query failed with AssertionError: cannot cast null as class
java.math.BigDecima
jinxing64 commented on a change in pull request #1448: [CALCITE-3332] Query failed with AssertionError: cannot cast null as class java.math.BigDecima
URL: https://github.com/apache/calcite/pull/1448#discussion_r322630270
##########
File path: core/src/main/java/org/apache/calcite/sql/fun/SqlMonotonicBinaryOperator.java
##########
@@ -66,6 +66,10 @@ public SqlMonotonicBinaryOperator(
Review comment:
Not sure, how about move the check above like below:
```
if ((mono1 == SqlMonotonicity.CONSTANT)
&& (mono0 == SqlMonotonicity.CONSTANT)
|| call.isOperandNull(0, true) || call.isOperandNull(1, true)) {
return SqlMonotonicity.CONSTANT;
}
```
Such we can save the below change.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services