dongjoon-hyun commented on a change in pull request #24081: [SPARK-27151][SQL]
ClearCacheCommand should be case-object to avoid copys
URL: https://github.com/apache/spark/pull/24081#discussion_r265358099
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
##########
@@ -3013,6 +3013,16 @@ class SQLQuerySuite extends QueryTest with
SharedSQLContext {
sql("reset")
}
}
+
+ test("clear cache command should not fail with cache") {
+ withTable("tbl") {
+ val provider = spark.sessionState.conf.defaultDataSourceName
+ sql(s"CREATE TABLE tbl(i INT, j STRING) USING $provider")
+ sql("clear cache")
+ sql("cache table tbl")
+ sql("clear cache")
+ }
+ }
Review comment:
This test case doesn't fail without the patch. Please remove this if this is
not your intention.
----------------------------------------------------------------
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]