ulysses-you commented on code in PR #6093:
URL: https://github.com/apache/incubator-gluten/pull/6093#discussion_r1650761907
##########
gluten-core/src/main/scala/org/apache/gluten/extension/columnar/OffloadSingleNode.scala:
##########
@@ -181,7 +157,38 @@ case class OffloadJoin() extends OffloadSingleNode with
LogLevelUtil {
case other => other
}
}
+}
+
+case class OffloadSortMergeJoin() extends OffloadSingleNode with LogLevelUtil {
+ override def offload(plan: SparkPlan): SparkPlan = {
+ if (TransformHints.isNotTransformable(plan)) {
+ logDebug(s"Columnar Processing for ${plan.getClass} is under row guard.")
+ return plan
+ }
+ plan match {
+ case plan: SortMergeJoinExec =>
+ OffloadSortMergeJoin.transformSortMergeJoinExec(plan)
Review Comment:
I mean we can add a rule to convert `SortMergeJoinExec` to
`ShuffledHashJoinExec`. So that we do not need to check
`forceShuffledHashJoin` here and there.
--
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]