maropu commented on a change in pull request #30974:
URL: https://github.com/apache/spark/pull/30974#discussion_r551087838



##########
File path: sql/core/src/main/scala/org/apache/spark/sql/Column.scala
##########
@@ -200,6 +203,7 @@ class Column(val expr: Expression) extends Logging {
     // Wait until the struct is resolved. This will generate a nicer looking 
alias.
     case struct: CreateNamedStruct => UnresolvedAlias(struct)
 
+    case expr: Expression if existsUnresolvedExpr(expr) => 
UnresolvedAlias(expr)
     case expr: Expression => Alias(expr, toPrettySQL(expr))()

Review comment:
       Could you change the PR title into more specific one? I think the 
current one looks more general than it actually is.




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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to