maropu commented on a change in pull request #27842: [SPARK-31078][SQL] Respect
aliases in output ordering
URL: https://github.com/apache/spark/pull/27842#discussion_r389342226
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/sources/BucketedReadSuite.scala
##########
@@ -604,6 +604,18 @@ abstract class BucketedReadSuite extends QueryTest with
SQLTestUtils {
}
}
+ test("sort should not be introduced when aliases are used") {
+ withSQLConf(SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "0") {
+ withTable("t") {
+ df1.repartition(1).write.format("parquet").bucketBy(8,
"i").sortBy("i").saveAsTable("t")
Review comment:
Ah, I see. How about the aggregate case?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]