You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2018/06/13 13:23:01 UTC

[jira] [Resolved] (FLINK-9570) SQL Client merging environments uses AbstractMap

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

Timo Walther resolved FLINK-9570.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.1
                   1.6.0

Fixed in 1.6.0: a00a39829d9e6cd6ee81c14a7a4eb19ce4e18154
Fixed in 1.5.1: 9a6707255f67bfaaf601a5e0f7ae397654052186

> 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
>            Assignee: Dominik Wosiński
>            Priority: Major
>             Fix For: 1.6.0, 1.5.1
>
>
> 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)