[
https://issues.apache.org/jira/browse/CALCITE-6417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17850220#comment-17850220
]
xiong duan commented on CALCITE-6417:
-------------------------------------
Fixed in
[694b556|https://github.com/apache/calcite/commit/694b556a2ece4953d8e9145352eb2340e1fac908].
Thanks for the review [~Sergey Nuyanzin] [~eveywu] .
> Map value constructor and Array value constructor unparsed incorrectly for
> HiveSqlDialect
> -----------------------------------------------------------------------------------------
>
> Key: CALCITE-6417
> URL: https://issues.apache.org/jira/browse/CALCITE-6417
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Affects Versions: 1.37.0
> Reporter: xiong duan
> Assignee: xiong duan
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.38.0
>
>
> The SQL:
> {code:java}
> SELECT MAP['k1', 'v1', 'k2', 'v2'],ARRAY[1, 2, 3]{code}
> Generate Hive SQL should be:
> {code:java}
> SELECT MAP ('k1', 'v1', 'k2', 'v2'),ARRAY (1, 2, 3){code}
> But is:
> {code:java}
> SELECT MAP['k1', 'v1', 'k2', 'v2'],ARRAY[1, 2, 3]{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)