Mihai Budiu created CALCITE-6502:
------------------------------------

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


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