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

ASF GitHub Bot updated CALCITE-6502:
------------------------------------
    Labels: pull-request-available  (was: )

> Parser loses position information for Expression3
> -------------------------------------------------
>
>                 Key: CALCITE-6502
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6502
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.37.0
>            Reporter: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>
> Parser.jj features the following code snipped in the Expression3 production:
> {code:java}
>         if (list1.size() == 1) {
>             // interpret as single value or query
>             return list1.get(0);
>         } 
> {code}
> This is problematic because the span of list1 is not the same as the span of 
> its first element.
> This makes it look like the expression parsed does not include the opening 
> and closing parens.
> This can be a problem for error reporting tools (but there are other use 
> cases that may be impacted).



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

Reply via email to