viirya commented on code in PR #299:
URL: https://github.com/apache/datafusion-comet/pull/299#discussion_r1576413764
##########
spark/src/main/scala/org/apache/spark/sql/comet/operators.scala:
##########
@@ -471,6 +488,9 @@ case class CometLocalLimitExec(
child: SparkPlan,
override val serializedPlanOpt: SerializedPlan)
extends CometUnaryExec {
+
+ override def outputPartitioning: Partitioning = child.outputPartitioning
Review Comment:
Because Spark's default `outputPartitioning` is `UnknownPartitioning`, if we
add `child.outputPartitioning` to `CometUnaryExec` as default, it will possibly
change `outputPartitioning` if we don't notice it.
Currently `CometExec` uses original Spark plan's `outputPartitioning` as
default which is safer option, I think. Except for the case that Spark
dynamically changes output partitioning during execution like AQE, it should be
correct because Comet doesn't change output partitioning from Spark.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]