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

Julian Hyde commented on CALCITE-7121:
--------------------------------------

What database besides BigQuery allows hyphens in unquoted table names?

> Allow to use hyphens in unquoted Table Names in dialects with backticks 
> quoting
> -------------------------------------------------------------------------------
>
>                 Key: CALCITE-7121
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7121
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>
> Currently it works only if {{CharLiteralStyle}} is either {{BQ_SINGLE}} or 
> {{BQ_DOUBLE}}.
> As it is in 
> {{org.apache.calcite.sql.parser.SqlAbstractParserImpl.LexicalState#forConfig}}
> {code:java}
>       case BACK_TICK:
>         if (config.conformance().allowHyphenInUnquotedTableName()
>             && config.charLiteralStyles().equals(
>                 EnumSet.of(CharLiteralStyle.BQ_SINGLE,
>                     CharLiteralStyle.BQ_DOUBLE))) {
>           return BQID;
>         }
>         if (!config.conformance().allowHyphenInUnquotedTableName()
>             && config.charLiteralStyles().equals(
>                 EnumSet.of(CharLiteralStyle.STANDARD))) {
>           return BTID;
>         }
> {code}
> In order to use it with not BQ dialect need to allow for {{STANDARD}}
> NOTE: this issue is only for dialects with backticks quoting



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

Reply via email to