Julian Hyde created CALCITE-4389:
------------------------------------

             Summary: Calls to ROW and anonymous row operators sometimes print 
too many spaces
                 Key: CALCITE-4389
                 URL: https://issues.apache.org/jira/browse/CALCITE-4389
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde


Calls to {{ROW}} and anonymous row operators sometimes print too many spaces. 
For example, "{{VALUES (1, TRUE)}}" is converted to SQL as
{noformat}
VALUES  (1, TRUE)
{noformat}

(Note two spaces after "VALUES".)

The cause is that the argument to VALUES is initially represented as a call to 
the ROW operator, "ROW (1, TRUE)", and later converted to a call to the 
anonymous row operator. The anonymous row operator, whose name is " " (one 
space), does not to be preceded by white space, but the one white space " " has 
already been printed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to