[ 
https://issues.apache.org/jira/browse/CALCITE-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565854#comment-16565854
 ] 

Vladimir Sitnikov commented on CALCITE-2416:
--------------------------------------------

Well, they could deserve {{GetOperandLiteralValueTest}}. Because why not?

{quote} getOperandLiteralValue makes assumptions on the kind of exception 
thrown by SqlLiteral.unchain{quote}
I was a bit surprised by that tight assumption, however I think that is to be 
unchained by another ticket/PR :)

> Assertion error when determining monotonicity
> ---------------------------------------------
>
>                 Key: CALCITE-2416
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2416
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.15.0, 1.16.0, 1.17.0
>            Reporter: Pressenna
>            Assignee: Vladimir Sitnikov
>            Priority: Major
>             Fix For: 1.18.0
>
>
> {code:java}
> CREATE TABLE test ( x integer, y integer);
> SELECT 2 * 2 * x FROM test;{code}
>  
> Causes:
> Exception in thread "main" java.lang.AssertionError: Internal error: invalid 
> literal: 2 * 2
>  
> Re-raising CALCITE-1504 which was fixed via CALCITE-1486



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to