lukecwik commented on a change in pull request #11037: [BEAM-9434] performance
improvements reading many Avro files in S3
URL: https://github.com/apache/beam/pull/11037#discussion_r403789265
##########
File path:
runners/spark/src/main/java/org/apache/beam/runners/spark/translation/TransformTranslator.java
##########
@@ -695,8 +695,10 @@ public void evaluate(Reshuffle<K, V> transform,
EvaluationContext context) {
final WindowedValue.WindowedValueCoder<KV<K, V>> wvCoder =
WindowedValue.FullWindowedValueCoder.of(coder,
windowFn.windowCoder());
+ int numPartitions =
+ Math.max(context.getSparkContext().defaultParallelism(),
inRDD.getNumPartitions());
Review comment:
I believe we should do the same thing in the streaming and batch portable
pipeline translators as well.
----------------------------------------------------------------
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