ulysses-you commented on code in PR #47545:
URL: https://github.com/apache/spark/pull/47545#discussion_r1701399571


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala:
##########
@@ -246,8 +246,6 @@ abstract class Optimizer(catalogManager: CatalogManager)
       CollapseProject,
       RemoveRedundantAliases,
       RemoveNoopOperators) :+
-    Batch("InsertMapSortInGroupingExpressions", Once,

Review Comment:
   It's good point. It may introduce new Aggregates in optimization, e.g., 
rewrite distinct, but seems not affect map type.  We disallow these operators 
on map type:
   `Cannot have MAP type columns in DataFrame which calls set operations 
(INTERSECT, EXCEPT, etc.),`



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