You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2026/05/01 04:08:00 UTC

[jira] [Created] (CALCITE-7498) The parser rejects the example hints from the documentation

Mihai Budiu created CALCITE-7498:
------------------------------------

             Summary: 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


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)