wuchong commented on a change in pull request #8718:
[FLINK-12824][table-planner-blink] Set parallelism for stream SQL
URL: https://github.com/apache/flink/pull/8718#discussion_r293773998
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/nodes/physical/stream/StreamExecCalc.scala
##########
@@ -116,11 +116,16 @@ class StreamExecCalc(
retainHeader = true,
"StreamExecCalc"
)
- new OneInputTransformation(
+ val ret = new OneInputTransformation(
inputTransform,
RelExplainUtil.calcToString(calcProgram, getExpressionString),
substituteStreamOperator,
BaseRowTypeInfo.of(outputType),
- inputTransform.getParallelism)
+ getResource.getParallelism)
+
+ if (getResource.getMaxParallelism > 0) {
+ ret.setMaxParallelism(getResource.getMaxParallelism)
Review comment:
Do we need to set max parallelism for calc? For example, a non-parallel
source following a calc, I think the calc can scale out.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services