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

Dominik Wosiński commented on FLINK-9570:
-----------------------------------------

Sadly,
I can't assign it, so probably I need permissions :)

 

> SQL Client merging environments uses AbstractMap
> ------------------------------------------------
>
>                 Key: FLINK-9570
>                 URL: https://issues.apache.org/jira/browse/FLINK-9570
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: Dominik Wosiński
>            Priority: Major
>
> Currently _Environment.merge()_ function looks like below: 
>  
> {code:java}
> final Environment mergedEnv = new Environment();
> // merge tables
> final Map<String, TableDescriptor> tables = new HashMap<>(env1.getTables());
> mergedEnv.getTables().putAll(env2.getTables());
> mergedEnv.tables = tables;
> {code}
> and no-arg constructor for _Environment_ defaults tables to 
> _Collections.emptyMap()._
> This basically results in calling _putAll_ on _EmptyMap_ which defaults to 
> _AbstractMap_ which always throws _UnsuppoertedOperationException._
>  



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

Reply via email to