AngersZhuuuu commented on a change in pull request #28490:
URL: https://github.com/apache/spark/pull/28490#discussion_r479954858



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -570,18 +570,44 @@ class Analyzer(
           s"Grouping sets size cannot be greater than 
${GroupingID.dataType.defaultSize * 8}")
       }
 
+      // For struct field, it will be resolve as Alias(GetStructField, name),
+      // In Aggregate/GroupingSets this behavior will cause the same struct 
fields

Review comment:
       Similar like  
https://github.com/apache/spark/pull/28490#discussion_r470555710.
   Need to try if it can solve all problem use `CleanupAlias.trimAliases()`.




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to