Skip to content

Commit 34dd60b

Browse files
committed
fix ut
1 parent aced503 commit 34dd60b

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

extensions/spark/kyuubi-spark-connector-hive/src/test/scala/org/apache/kyuubi/spark/connector/hive/command/PartitionManagementSuite.scala

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ trait PartitionManagementSuite extends DDLCommandTestUtils {
5555
}
5656
}
5757

58-
test("list partitions") {
58+
test("show partitions") {
5959
withNamespaceAndTable("ns", "tbl") { t =>
6060
sql(s"CREATE TABLE $t (id string, year string, month string) PARTITIONED BY (year, month)")
6161
sql(s"ALTER TABLE $t ADD PARTITION (year='2023', month='01')")
@@ -67,19 +67,6 @@ trait PartitionManagementSuite extends DDLCommandTestUtils {
6767
checkAnswer(
6868
sql(s"SHOW PARTITIONS $t PARTITION (year='2023', month='01')"),
6969
Row("year=2023/month=01") :: Nil)
70-
}
71-
}
72-
73-
test("show partitions with multiple partition columns") {
74-
withNamespaceAndTable("ns", "tbl") { t =>
75-
sql(s"CREATE TABLE $t (id string, year string, month string) PARTITIONED BY (year, month)")
76-
sql(s"ALTER TABLE $t ADD PARTITION (year='2023', month='01')")
77-
sql(s"ALTER TABLE $t ADD PARTITION (year='2023', month='02')")
78-
sql(s"ALTER TABLE $t ADD PARTITION (year='2024', month='01')")
79-
80-
checkAnswer(
81-
sql(s"SHOW PARTITIONS $t"),
82-
Row("year=2023/month=01") :: Row("year=2023/month=02") :: Row("year=2024/month=01") :: Nil)
8370

8471
checkAnswer(
8572
sql(s"SHOW PARTITIONS $t PARTITION (year='2023')"),

0 commit comments

Comments
 (0)