dtenedor commented on code in PR #49245:
URL: https://github.com/apache/spark/pull/49245#discussion_r1906001486
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/AliasResolution.scala:
##########
@@ -52,6 +42,7 @@ object AliasResolution {
case ne: NamedExpression => ne
case go @ GeneratorOuter(g: Generator) if g.resolved => MultiAlias(go,
Nil)
case e if !e.resolved => u
+ case p: PipeExpression => resolve(u.copy(child = p.replacement))
Review Comment:
Good point, I looked and was able to switch `PipeExpression` from
`RuntimeReplaceable` to `Unevaluable` instead. Now `ResolveAliases` maintains
full responsibility for checking the invariants and removing the
`PipeExpression` once its child is resolved. I also synced from master and
updated the golden files.
--
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]