You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/HiveFileStatusCacheSuite.scala
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -255,35 +255,35 @@ class HiveFileStatusCacheSuite extends KyuubiHiveTest {
255
255
valcatalog2="hive2"
256
256
valdbName="default"
257
257
valtbName="tbl_partition"
258
-
valdbTableShortName=s"${dbName}.${tbName}"
259
-
valcat1Table=s"${catalog1}.${dbTableShortName}"
260
-
valcat2Table=s"${catalog2}.${dbTableShortName}"
258
+
valcat1Table=s"${catalog1}.${dbName}.${tbName}"
259
+
valcat2Table=s"${catalog2}.${dbName}.${tbName}"
261
260
262
261
withTable(cat1Table, cat2Table) {
263
262
spark.sql(s"CREATE TABLE IF NOT EXISTS $cat1Table (age int)partitioned by(city string)"+
264
263
s" stored as orc").collect()
264
+
spark.sql(s"CREATE TABLE IF NOT EXISTS $cat2Table (age int)partitioned by(city string)"+
265
+
s" stored as orc").collect()
266
+
265
267
vallocation= newCatalog()
266
268
.loadTable(Identifier.of(Array(dbName), tbName))
267
269
.asInstanceOf[HiveTable]
268
270
.catalogTable.location.toString
269
271
270
-
spark.sql(s"use $catalog1").collect()
271
-
spark.sql(s"insert into $dbTableShortName partition(city='ct1') "+
272
+
spark.sql(s"insert into $cat1Table partition(city='ct1') "+
272
273
s"values(11),(12),(13),(14),(15)").collect()
273
274
spark.sql(s"select * from $cat1Table where city='ct1'").collect()
0 commit comments