We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abc57dd commit c3439ffCopy full SHA for c3439ff
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
@@ -1446,8 +1446,11 @@ class HiveDDLSuite
1446
1447
var newDir = dir.getAbsolutePath.stripSuffix("/") + "/x"
1448
spark.sql(s"alter table t set location '$newDir'")
1449
+
1450
table = spark.sessionState.catalog.getTableMetadata(TableIdentifier("t"))
1451
assert(table.location == newDir)
1452
+ assert(!new File(newDir).exists())
1453
+ checkAnswer(spark.table("t"), Nil)
1454
1455
spark.sql("insert into table t select 'c', 1")
1456
checkAnswer(spark.table("t"), Row("c", 1) :: Nil)
0 commit comments