cloud-fan commented on code in PR #40116:
URL: https://github.com/apache/spark/pull/40116#discussion_r1151518642


##########
sql/core/src/main/scala/org/apache/spark/sql/RelationalGroupedDataset.scala:
##########
@@ -89,7 +89,12 @@ class RelationalGroupedDataset protected[sql](
     case expr: NamedExpression => expr
     case a: AggregateExpression if 
a.aggregateFunction.isInstanceOf[TypedAggregateExpression] =>
       UnresolvedAlias(a, Some(Column.generateAlias))
-    case expr: Expression => Alias(expr, toPrettySQL(expr))()
+    case expr: Expression =>

Review Comment:
   nit:
   ```
   case u: UnresolvedFunction => UnresolvedAlias(expr, None)
   case expr: Expression => Alias(expr, toPrettySQL(expr))() 
   ```



##########
sql/core/src/main/scala/org/apache/spark/sql/SQLImplicits.scala:
##########
@@ -40,12 +40,11 @@ abstract class SQLImplicits extends LowPrioritySQLImplicits 
{
    */
   implicit class StringToColumn(val sc: StringContext) {
     def $(args: Any*): ColumnName = {
-      new ColumnName(sc.s(args: _*))
+        new ColumnName(sc.s(args: _*))

Review Comment:
   unnecessary change



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