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

Nan Deng commented on CALCITE-2917:
-----------------------------------

And in 
[SqlParser|https://github.com/apache/calcite/blob/8f4a79735078f025a35e5e83637bce99ca98f348/core/src/main/java/org/apache/calcite/sql/parser/SqlParser.java#L63]
 bracket quote will be mapped to "DEFAULT"
{code:java}
switch (config.quoting()) {
case DOUBLE_QUOTE:
parser.switchTo("DQID");
break;
case BACK_TICK:
parser.switchTo("BTID");
break;
case BRACKET:
parser.switchTo("DEFAULT");
break;
}{code}

> Calcite should use double quote as default identifier delimiter
> ---------------------------------------------------------------
>
>                 Key: CALCITE-2917
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2917
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.17.0, 1.18.0
>            Reporter: Nan Deng
>            Priority: Major
>
> From CALCITE-1217 I found this statement:
> {code:java}
> (Calcite) Its default identifier quoting character is double-quote.
> {code}
>  this is not consistent with what's been said in 
> [Parser.jj|https://github.com/apache/calcite/blob/50012d221d6e9a5e42a957ab0723e0f706b25be3/core/src/main/codegen/templates/Parser.jj#L6976]
>  which defines bracket as the default identifier delimiter:
>  
>  It should be one or another.



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

Reply via email to