cloud-fan commented on code in PR #38497:
URL: https://github.com/apache/spark/pull/38497#discussion_r1019064915
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/subquery.scala:
##########
@@ -52,10 +52,12 @@ object RewritePredicateSubquery extends Rule[LogicalPlan]
with PredicateHelper {
outerPlan: LogicalPlan,
subplan: LogicalPlan,
joinType: JoinType,
- condition: Option[Expression]): Join = {
+ condition: Option[Expression],
+ subHint: Option[HintInfo]): Join = {
// Deduplicate conflicting attributes if any.
val dedupSubplan = dedupSubqueryOnSelfJoin(outerPlan, subplan, None,
condition)
- Join(outerPlan, dedupSubplan, joinType, condition, JoinHint.NONE)
+ // Add sub hint as right hint as the subquery plan is on the right side of
the join
Review Comment:
```suggestion
// Add subquery hint as right hint as the subquery plan is on the right
side of the join
```
--
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]