[
https://issues.apache.org/jira/browse/CALCITE-7121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18011644#comment-18011644
]
Sergey Nuyanzin commented on CALCITE-7121:
------------------------------------------
We are going to enable it for Flink since some source/sink allow such naming
(for instance Kafka topics),
however noticed current limitation
> 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)