cloud-fan commented on PR #49245:
URL: https://github.com/apache/spark/pull/49245#issuecomment-2558931188

   @dtenedor after a few iterations, `ResolveAliases` should see 
`PipeExpression` with its child resolved, right? The thing is that we should 
have consistent auto alias generation behavior between normal and pipe SQL 
syntaxes, e.g.
   ```
         case ne: NamedExpression => ne
         case go @ GeneratorOuter(g: Generator) if g.resolved => MultiAlias(go, 
Nil)
         case e if !e.resolved => u
         case g: Generator => MultiAlias(g, Nil)
         case c @ Cast(ne: NamedExpression, _, _, _) => Alias(c, ne.name)()
         case e: ExtractValue if extractOnly(e) => Alias(e, toPrettySQL(e))()
   ```


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