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



##########
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:
       cc @cloud-fan 
   Updated. since it's special, we can't just use CleanupAlias.trimAlias()
   Add a new method to fit for GetStructField




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