Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12308 Support python language in Flink Table API
  3. FLINK-12585

Align Stream/BatchTableEnvironment with JAVA Table API

    XMLWordPrintableJSON

    Details

      Description

      Initially we wanted to align with the [FLIP-32|https://cwiki.apache.org/confluence/display/FLINK/FLIP-32%3A+Restructure+flink-table+for+future+contributions] plan and Unify the TableEnvironment.  such as:

       TableConfig config = TableConfig.builder()
              .asStreamingExecution()
              // example of providing configuration that was in StreamExecutionEnvironment before
              .watermarkInterval(100)   
              .build();
      
      TableEnvironment tEnv = TableEnvironment.create(config);

      So, Current Python Table API as follows:

      self.t_config = TableConfig.Builder().as_streaming_execution().set_parallelism(1).build()
      self.t_env = TableEnvironment.create(self.t_config)

      But, due to Java API not have done this improve yet, and the end date of release 1.9 is coming, So, It's better to align the `Stream/BatchTableEnvironment` with JAVA Table API for now. we should follow the current Java style, for example:

      val env = StreamExecutionEnvironment.getExecutionEnvironment
      env.setStateBackend(getStateBackend) 
      val tEnv = StreamTableEnvironment.create(env)

      What to do you think? Dian Fu Wei Zhong 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zhongwei Wei Zhong
                Reporter:
                sunjincheng121 sunjincheng
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m