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

Mihai Budiu resolved CALCITE-7498.
----------------------------------
    Fix Version/s: 1.42.0
         Assignee: Mihai Budiu
       Resolution: Fixed

Fixed in 
[https://github.com/apache/calcite/commit/97fd524d17c75ae586e8886bb73844f0daeb0212]

Thank you for the reviews [~caicancai] [~asolimando] 

> The parser rejects the example hints from the documentation
> -----------------------------------------------------------
>
>                 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)

Reply via email to