[ https://issues.apache.org/jira/browse/CALCITE-2165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16353236#comment-16353236 ]
Julian Hyde commented on CALCITE-2165: -------------------------------------- Thanks for the test case. The problem is that {{getMonotonicity}} has ascertained that the operand is constant, but not every constant expression is a literal. The javadoc of {{SqlOperatorBinding.getOperandLiteralValue}} says "If the operand is not a literal, the value is null", so I think you should make all implementations of that method do that. Hopefully that doesn't break anything. > SqlCallingBinding.getOperandLiteralValue should ignore AssertionError > --------------------------------------------------------------------- > > Key: CALCITE-2165 > URL: https://issues.apache.org/jira/browse/CALCITE-2165 > Project: Calcite > Issue Type: Bug > Reporter: Dian Fu > Assignee: Julian Hyde > Priority: Major > -- This message was sent by Atlassian JIRA (v7.6.3#76005)