LukaZdravic commented on code in PR #59267:
URL: https://github.com/apache/spark/pull/59267#discussion_r4283924514


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/resolver/AsOfJoinResolver.scala:
##########
@@ -216,8 +275,8 @@ class AsOfJoinResolver(
         val rightOperand = resolveExpressionInJoin(unresolvedAsOfJoin, 
unresolvedRightOperand)
         AsOfJoinMatchConditionResolution.materialize(
           join = partiallyResolved,
-          leftSet = AttributeSet(leftNameScope.output),
-          rightSet = AttributeSet(rightNameScope.output),
+          leftSet = AttributeSet(leftNameScope.output ++ 
leftNameScope.hiddenOutput),

Review Comment:
   Per the offline discussion changed to filtering the hiddenOutput to only the 
columns that are needed, thanks!



-- 
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]

Reply via email to