godfrey he created FLINK-20821:
----------------------------------
Summary: `select row(map[1,2],'ab')` parses failed
Key: FLINK-20821
URL:
https://issues.apache.org/jira/browse/FLINK-20821 Project: Flink
Issue Type: Bug
Components: Table SQL / Planner
Reporter: godfrey he
when executing {{select row(map[1,2],'ab')}}, we encounter the following error:
{code:text}
org.apache.flink.table.api.SqlParserException: SQL parse failed. Encountered "[" at line 1, column 15.
Was expecting one of:
")" ...
"," ...
at org.apache.flink.table.planner.calcite.CalciteParser.parse(CalciteParser.java:56)
at org.apache.flink.table.planner.delegation.ParserImpl.parse(ParserImpl.java:74)
at org.apache.flink.table.api.internal.TableEnvironmentImpl.sqlQuery(TableEnvironmentImpl.java:640)
{code}
while, the similar statement {{select row('ab',map[1,2])}} can be parsed successfully.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)