You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by xccui <gi...@git.apache.org> on 2018/05/14 03:12:07 UTC
[GitHub] flink pull request #6003: [FLINK-9289] Parallelism of generated operators sh...
GitHub user xccui opened a pull request:
https://github.com/apache/flink/pull/6003
[FLINK-9289] Parallelism of generated operators should have max parallelism of input
## What is the purpose of the change
This PR aims to fix the default parallelism problem for the generated key-extraction mapper whose input is a union operator without parallelism in the batch environment.
## Brief change log
- When creating a `Union` operator, automatically set its parallelism to the maximum one of its inputs.
- Forbid the user to set parallelism for the union operator manually.
- Add some test cases in `UnionOperatorTest.java` and `UnionTranslationTest.java`.
- Adjust the results for `testUnionWithoutExtended()` and `testUnionWithExtended()` in `org.apache.flink.table.api.batch.ExplainTest`.
- Remove the parallelism setting code for union in `PythonPlanBinder.java` and `PageRank.java`.
## Verifying this change
The change can be verified by the added test cases in `UnionOperatorTest.java` and `UnionTranslationTest.java`.
## 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? (no)
- If yes, how is the feature documented? (not applicable)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/xccui/flink FLINK-9289-parallelism
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6003.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6003
----
commit 35be0811ef0a5e6c572d0a60160fa18c3b6afefa
Author: Xingcan Cui <xi...@...>
Date: 2018-05-13T12:20:36Z
[FLINK-9289] Parallelism of generated operators should have max parallism of input
----
---