[
https://issues.apache.org/jira/browse/CALCITE-7498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082817#comment-18082817
]
Stamatis Zampetakis commented on CALCITE-7498:
----------------------------------------------
I modified the summary to indicate that this is an actual enhancement on the
parser and not just a documentation problem/change as the initial title was
suggesting.
> Enhance parser to allow hints with assignments mixing literals and identifiers
> ------------------------------------------------------------------------------
>
> Key: CALCITE-7498
> URL: https://issues.apache.org/jira/browse/CALCITE-7498
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.41.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.42.0
>
>
> Section [https://calcite.apache.org/docs/reference.html#sql-hints] in the
> documentation gives the following example:
> {code:java}
> SELECT /*+ hint1, hint2(a=1, b=2) */
> ...
> FROM
> tableName /*+ hint3(5, 'x') */
> JOIN
> tableName /*+ hint4(c=id), hint5 */
> ... {code}
> For assignments the grammar (as described in the next paragraph and in the
> implementation) requires a string literal on the RHS, thus the parser
> rejecting this example.
> We can change either the example or the grammar. I suspect the actual intent
> is for the grammar to accept other literals besides string in this position.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)