[FLINK-13368][python] Add Configuration Class for Python Table API to Align with Java.#9199
[FLINK-13368][python] Add Configuration Class for Python Table API to Align with Java.#9199WeiZhong94 wants to merge 3 commits intoapache:masterfrom
Conversation
… Align with Java.
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit ffc1258 (Tue Aug 06 15:45:25 UTC 2019) 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. DetailsThe 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:
|
sunjincheng121
left a comment
There was a problem hiding this comment.
Thanks for the PR @WeiZhong94 !
I think It's better to merge the test methods just like java test case.
Best, Jincheng
| from pyflink.testing.test_case_utils import PyFlinkTestCase | ||
|
|
||
|
|
||
| class ConfigurationTests(PyFlinkTestCase): |
There was a problem hiding this comment.
Could you please merge the testcase just like Java, please see: ConfigurationTest
dianfu
left a comment
There was a problem hiding this comment.
@WeiZhong94 Thanks a lot for the PR. Have left a few minor comments.
| else: | ||
| self._j_configuration.addAll(other._j_configuration, prefix) | ||
|
|
||
| def clone(self): |
There was a problem hiding this comment.
should use copy and deepcopy instead.
|
|
||
| def to_dict(self): | ||
| """ | ||
| Convert the configuration into a dict representation of string key-pair. |
|
@sunjincheng121 Thanks a lot for your review! I have combined these test cases into one in the latest commit. |
|
@dianfu Thanks a lot for your review! I have addressed your comments. |
|
@WeiZhong94 Thanks a lot for the update. LGTM to me. +1 from my side. |
sunjincheng121
left a comment
There was a problem hiding this comment.
+1 to merged 👍
@flinkbot approve all
… Align with Java. This closes #9199
What is the purpose of the change
This pull request adds
Configurationclass,TableConfig.get_configuration()method andTableConfig.add_configuration()method for python Table API to align with Java.Brief change log
Configurationclass and relevant tests inpyflink.commonpackageget_configuration()andadd_configuration()methods inTableConfigclassTableConfiginto a separate fileVerifying this change
This change is already covered by existing tests, such as
test_configuration.pyandtest_table_config.py.Does this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation