Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20276#discussion_r162262776
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
---
@@ -318,7 +318,10 @@ class Analyzer(
gid: Expression): Expression = {
expr transform {
case e: GroupingID =>
- if (e.groupByExprs.isEmpty || e.groupByExprs == groupByExprs) {
+ def sameExpressions(e1: Seq[Expression], e2: Seq[Expression]):
Boolean = {
--- End diff --
Anyway my PR exposed this bug as now `Dataset.col` returns a slightly
different attribute with a metadata.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]