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

Mihai Budiu resolved CALCITE-6731.
----------------------------------
    Fix Version/s: 1.41.0
       Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/7ecd358b2e4678e8c74e6689a235912361aa6a8a
Thank you for the contribution [~krooswu]
Thank you for the reviews [~xuzifu666] [~nobigo]

> Support bitwise XOR (^) operator in SQL
> ---------------------------------------
>
>                 Key: CALCITE-6731
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6731
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: zhengyu
>            Assignee: krooswu
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.41.0
>
>
> version :
> org.apache.calcite:calcite-core:1.35.0 
> config : 
>  
> private static final SqlParser.Config MYSQL_CONFIG = SqlParser.config()
> .withCaseSensitive(false)
> .withUnquotedCasing(Casing.UNCHANGED)
> .withConformance(SqlConformanceEnum.LENIENT)
> .withQuoting(Quoting.BACK_TICK)
> .withLex(Lex.MYSQL)
> .withIdentifierMaxLength(512);
>   sql: SELECT 5 ^ 3   
>  
> SqlNode sqlNode;
> try {
> sqlNode = SqlParser.create(sql, MYSQL_CONFIG).parseStmt();
> } catch (SqlParseException e) {}
>  
> error :
> Encountered "^" at line 1, column 10.
> Was expecting one of:
>     <EOF> 
>     "AS" ...
>     "EXCEPT" ...
>     "FETCH" ...
>     "FROM" ...
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to