New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-20994][python] Add public method to create TableEnvironment in PyFlink. #14760
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 2934d01 (Tue Jan 26 13:15:21 UTC 2021) ✅no warnings Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
a1a7732
to
a2dbd92
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WeiZhong94 Thanks a lot for the PR. LGTM. I only left a minor code style suggestion.
@@ -1045,7 +1059,8 @@ def register_java_function(self, name: str, function_class_name: str): | |||
.loadClass(function_class_name).newInstance() | |||
# this is a temporary solution and will be unified later when we use the new type | |||
# system(DataType) to replace the old type system(TypeInformation). | |||
if self._is_blink_planner and isinstance(self, BatchTableEnvironment): | |||
if self._is_blink_planner and not isinstance(self, StreamTableEnvironment) \ | |||
or self._unified: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in one line?
@@ -1090,7 +1105,8 @@ def register_function(self, name: str, function: UserDefinedFunctionWrapper): | |||
java_function = function._java_user_defined_function() | |||
# this is a temporary solution and will be unified later when we use the new type | |||
# system(DataType) to replace the old type system(TypeInformation). | |||
if self._is_blink_planner and isinstance(self, BatchTableEnvironment): | |||
if self._is_blink_planner and isinstance(self, BatchTableEnvironment) \ | |||
or self._unified: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@HuangXingBo Thanks for your review. I have updated this PR. |
73dc09e
to
c254141
Compare
@flinkbot run azure |
What is the purpose of the change
This pull request adds public method to create TableEnvironment in PyFlink.
Brief change log
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes)Documentation