hequn8128 opened a new pull request #7622: [FLINK-11445][table] Deprecate static methods in TableEnvironments URL: https://github.com/apache/flink/pull/7622 ## What is the purpose of the change This pull request deprecates static methods in TableEnvironments and direct to the java/scala Batch/StreamTableEnvionrment.create() approach. ## Brief change log - Deprecated the getTableEnvironment method in TableEnvironment. - Deprecate the constructors of all table environments. Because of scala, deprecation messages of constructors will only be shown at compile time - Add create method in all 4 TableEnvironments: java/scala Batch/StreamTableEnvionrment. - Replace all old getTableEnvironment methods to the new create methods in all places in Flink. - Adapt document ## Verifying this change This change is already covered by existing tests. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): (no) - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no) - The serializers: (no) - The runtime per-record code paths (performance sensitive): (no) - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (yes) - If yes, how is the feature documented? (docs)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services