francis0407 commented on a change in pull request #23783: [SPARK-26854][SQL]
Support ANY/SOME subquery
URL: https://github.com/apache/spark/pull/23783#discussion_r258393469
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
##########
@@ -487,11 +487,11 @@ object TypeCoercion {
case (e, dt) if e.dataType != dt => Cast(e, dt)
case (e, _) => e
}
-
val newSub = Project(castedRhs, sub)
- InSubquery(newLhs, ListQuery(newSub, children, exprId,
newSub.output))
+ val newQuery = ListQuery(newSub, children, exprId, newSub.output)
+ ps.makeCopy(Array(newLhs, newQuery, genCmp))
Review comment:
+1 for this
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]