ulysses-you commented on a change in pull request #35473:
URL: https://github.com/apache/spark/pull/35473#discussion_r811195794
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/dsl/package.scala
##########
@@ -432,7 +432,7 @@ package object dsl {
def groupBy(groupingExprs: Expression*)(aggregateExprs: Expression*):
LogicalPlan = {
val aliasedExprs = aggregateExprs.map {
case ne: NamedExpression => ne
- case e => Alias(e, e.toString)()
+ case e => UnresolvedAlias(e)
Review comment:
it seems a small bug in test, the name will be an unresolved string if
there is no alias specified.
--
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]