[ 
https://issues.apache.org/jira/browse/FLINK-8038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rong Rong updated FLINK-8038:
-----------------------------
    Description: 
Similar to https://issues.apache.org/jira/browse/FLINK-4554
We want to support Map value constructor which is supported by Calcite:
https://calcite.apache.org/docs/reference.html#value-constructors


{code:sql}
SELECT
  MAP['key1', f0, 'key2', f1] AS stringKeyedMap,
  MAP['key', 'value'] AS literalMap,
  MAP[f0, f1] AS fieldMap
FROM
  table
{code}

This should enable users to construct MapTypeInfo, one of the CompositeType.

  was:
Similar to https://issues.apache.org/jira/browse/FLINK-4554
We want to support Map literals which is supported by Calcite:
https://calcite.apache.org/docs/reference.html#value-constructors


{code:sql}
SELECT
  MAP['key1', f0, 'key2', f1] AS stringKeyedMap,
  MAP['key', 'value'] AS literalMap,
  MAP[f0, f1] AS fieldMap
FROM
  table
{code}

This should enable users to construct MapTypeInfo, one of the CompositeType.


> Support MAP value constructor
> -----------------------------
>
>                 Key: FLINK-8038
>                 URL: https://issues.apache.org/jira/browse/FLINK-8038
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API & SQL
>            Reporter: Rong Rong
>            Assignee: Rong Rong
>
> Similar to https://issues.apache.org/jira/browse/FLINK-4554
> We want to support Map value constructor which is supported by Calcite:
> https://calcite.apache.org/docs/reference.html#value-constructors
> {code:sql}
> SELECT
>   MAP['key1', f0, 'key2', f1] AS stringKeyedMap,
>   MAP['key', 'value'] AS literalMap,
>   MAP[f0, f1] AS fieldMap
> FROM
>   table
> {code}
> This should enable users to construct MapTypeInfo, one of the CompositeType.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to