[ 
https://issues.apache.org/jira/browse/FLINK-7360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16597513#comment-16597513
 ] 

xueyu commented on FLINK-7360:
------------------------------

It looks that flink scala does not support java.util.Map too, such as scala 
fromCollection
{code:java}
val data = List( (1, Collections.singletonMap("foo", "bar")), 
                  (2, Collections.singletonMap("foo1", "bar1")), 
                  (3, Collections.singletonMap("foo2", "bar2")) )
val env = StreamExecutionEnvironment.getExecutionEnvironment
env.fromCollection(data)


{code}
Do we need to support this java map in scala? [~twalthr]

> Support Scala map type in Table API
> -----------------------------------
>
>                 Key: FLINK-7360
>                 URL: https://issues.apache.org/jira/browse/FLINK-7360
>             Project: Flink
>          Issue Type: New Feature
>          Components: Table API & SQL
>            Reporter: Timo Walther
>            Priority: Major
>
> Currently, Flink SQL supports only Java `java.util.Map`. Scala maps are 
> treated as a blackbox with Flink `GenericTypeInfo`/SQL `ANY` data type. 
> Therefore, you can forward these blackboxes and use them within scalar 
> functions but accessing with the `['key']` operator is not supported.
> We should convert these special collections at the beginning, in order to use 
> in a SQL statement.
> See: 
> https://stackoverflow.com/questions/45471503/flink-table-api-sql-and-map-types-scala



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to