Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9570

SQL Client merging environments uses AbstractMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1, 1.6.0
    • None
    • None

    Description

      Currently Environment.merge() function looks like below: 

       

      final Environment mergedEnv = new Environment();
      
      // merge tables
      final Map<String, TableDescriptor> tables = new HashMap<>(env1.getTables());
      mergedEnv.getTables().putAll(env2.getTables());
      mergedEnv.tables = tables;
      
      

      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.

       

      Attachments

        Issue Links

          Activity

            People

              Wosinsan Dominik Wosiński
              Wosinsan Dominik Wosiński
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: