cloud-fan commented on a change in pull request #30138:
URL: https://github.com/apache/spark/pull/30138#discussion_r510740768
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/sources/DisableUnnecessaryBucketedScanSuite.scala
##########
@@ -218,4 +221,27 @@ abstract class DisableUnnecessaryBucketedScanSuite extends
QueryTest with SQLTes
}
}
}
+
+ test("SPARK-33075: not disable bucketed table scan for cached query") {
+ withTable("t1") {
+ withSQLConf(SQLConf.AUTO_BUCKETED_SCAN_ENABLED.key -> "true") {
+ df1.write.format("parquet").bucketBy(8, "i").saveAsTable("t1")
+ sql("CACHE TABLE tempTable AS SELECT i FROM t1")
Review comment:
it can also save the `uncache` at the end, as the table will be dropped
at the end.
----------------------------------------------------------------
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]