mgaido91 commented on a change in pull request #22957: [SPARK-25951][SQL]
Ignore aliases for distributions and orderings
URL: https://github.com/apache/spark/pull/22957#discussion_r242192474
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala
##########
@@ -1549,6 +1551,38 @@ class DatasetSuite extends QueryTest with
SharedSQLContext {
Seq(Row("Amsterdam")))
}
+ test("SPARK-25951: avoid redundant shuffle on rename") {
Review comment:
it is still useful because it may happen a used writes something like:
```
select ... group by a as b, ...
```
(please notice that despite it makes no sense written in SQL, maybe with
other APIs is easier to happen).
And especially it is useful when updating the `outputPartitioning` in order
to check whether an expression produces the same result of another.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]