You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2026/06/10 19:13:00 UTC

[jira] [Commented] (CALCITE-7599) Enhance parser to allow numeric literals as values in k/v hints as suggested by documentation

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

Julian Hyde commented on CALCITE-7599:
--------------------------------------

Give an example.

> Enhance parser to allow numeric literals as values in k/v hints as suggested by documentation
> ---------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-7599
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7599
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.42.0
>            Reporter: Chris Dennis
>            Priority: Minor
>              Labels: pull-request-available
>
> There is a small inconsistency remaining between the reference documentation [https://calcite.apache.org/docs/reference.html#syntax] and the parser syntax. The documentation example shows unquoted numeric literals being used as values in a k/v hint. This isn't reflected in the grammar that follows in the document, the parser grammar itself, or in {{SqlHintsConverterTest#testDocumentationExample}}. I think it should be pretty simple to expand the grammar to support either a string or numeric literal, and to update the test to exactly match the documentation example by not quoting the two numeric constants.



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