Sergey Nuyanzin created CALCITE-7660:
----------------------------------------
Summary: SqlSetSemanticsTableOperator might produce invalid SQL
while unparse
Key: CALCITE-7660
URL: https://issues.apache.org/jira/browse/CALCITE-7660
Project: Calcite
Issue Type: Bug
Components: core
Reporter: Sergey Nuyanzin
Assignee: Sergey Nuyanzin
The problem appears if there are 2 and more fields under {{PARTITION BY}} or
{{ORDER BY}}
e.g.
{sql:code}
SELECT * FROM TABLE(`TOPN`((TABLE `ORDERS`) ORDER BY (`ORDERID`, `PRODUCTID`),
3))
{code}
is rewritten to
{sql:code}
SELECT * FROM TABLE(`TOPN`((TABLE `ORDERS`) ORDER BY `ORDERID`, `PRODUCTID`, 3))
{code}
which now fails while parsing
same for {{PARTITION BY}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)