[ 
https://issues.apache.org/jira/browse/CALCITE-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sunjincheng updated CALCITE-1897:
---------------------------------
    Description: 
Currently the following sql is not supported. 

  SELECT a%3 FROM T

 We get the exception:
  
     Caused by: org.apache.calcite.sql.parser.SqlParseException: Lexical error 
at line 1, column 9.  Encountered: "%" (37), after : ""
        at 
org.apache.calcite.sql.parser.impl.SqlParserImpl.convertException(SqlParserImpl.java:396)
        at 
org.apache.calcite.sql.parser.impl.SqlParserImpl.normalizeException(SqlParserImpl.java:129)

In this JIRA. I'll fix this by support operator "%" as an alternative to "mod". 
Similar https://issues.apache.org/jira/browse/CALCITE-1374

  was:
Currently the following sql is not supported. 

  SELECT a%3 FROM T

 We get the exception:
  
     Caused by: org.apache.calcite.sql.parser.SqlParseException: Lexical error 
at line 1, column 9.  Encountered: "%" (37), after : ""
        at 
org.apache.calcite.sql.parser.impl.SqlParserImpl.convertException(SqlParserImpl.java:396)
        at 
org.apache.calcite.sql.parser.impl.SqlParserImpl.normalizeException(SqlParserImpl.java:129)

In this JIRA. I'll fix this by support operator "%" as an alternative to "mod".


> Support operator "%" as an alternative to "mod"
> -----------------------------------------------
>
>                 Key: CALCITE-1897
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1897
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>            Reporter: sunjincheng
>            Assignee: sunjincheng
>
> Currently the following sql is not supported. 
>   SELECT a%3 FROM T
>  We get the exception:
>   
>      Caused by: org.apache.calcite.sql.parser.SqlParseException: Lexical 
> error at line 1, column 9.  Encountered: "%" (37), after : ""
>       at 
> org.apache.calcite.sql.parser.impl.SqlParserImpl.convertException(SqlParserImpl.java:396)
>       at 
> org.apache.calcite.sql.parser.impl.SqlParserImpl.normalizeException(SqlParserImpl.java:129)
> In this JIRA. I'll fix this by support operator "%" as an alternative to 
> "mod". 
> Similar https://issues.apache.org/jira/browse/CALCITE-1374



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to