Skip to content

Commit

Permalink
Spark: Do not pass numPartitions in 3.1 to let AQE size stages (apach…
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 authored Oct 6, 2021
1 parent 94ba050 commit adc6d15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ object PlanUtils {
if (Spark3VersionUtil.isSpark30) {
repartitionByExpressionCtor.newInstance(partitionExpressions, child, Integer.valueOf(numPartitions))
} else {
repartitionByExpressionCtor.newInstance(partitionExpressions, child, Some(numPartitions))
// Do not pass numPartitions because it is set automatically for AQE
repartitionByExpressionCtor.newInstance(partitionExpressions, child, None)
}
}
}

0 comments on commit adc6d15

Please sign in to comment.