Skip to content

Commit

Permalink
Fix SQL IT failures
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Jan 8, 2024
1 parent 11b8270 commit 3787bc2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ materializedViewStatement
| showMaterializedViewStatement
| describeMaterializedViewStatement
| dropMaterializedViewStatement
| vacuumMaterializedViewStatement
;

createMaterializedViewStatement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class FlintSparkCoveringIndexSqlITSuite extends FlintSparkSuite {
checkAnswer(result, Seq(Row("name", "string", "indexed"), Row("age", "int", "indexed")))
}

test("drop covering index") {
test("drop and vacuum covering index") {
flint
.coveringIndex()
.name(testIndex)
Expand All @@ -276,7 +276,7 @@ class FlintSparkCoveringIndexSqlITSuite extends FlintSparkSuite {
.create()

sql(s"DROP INDEX $testIndex ON $testTable")

sql(s"VACUUM INDEX $testIndex ON $testTable")
flint.describeIndex(testFlintIndex) shouldBe empty
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class FlintSparkIndexNameITSuite extends FlintSparkSuite {
indexData should have size 1

sql(s"DROP SKIPPING INDEX ON $testTable")
sql(s"VACUUM SKIPPING INDEX ON $testTable")
flint.describeIndex(flintIndexName) shouldBe empty
}

Expand All @@ -76,6 +77,7 @@ class FlintSparkIndexNameITSuite extends FlintSparkSuite {
indexData should have size 1

sql(s"DROP INDEX $testIndex ON $testTable")
sql(s"VACUUM INDEX $testIndex ON $testTable")
flint.describeIndex(flintIndexName) shouldBe empty
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,15 @@ class FlintSparkMaterializedViewSqlITSuite extends FlintSparkSuite {
checkAnswer(sql("DESC MATERIALIZED VIEW nonexistent_mv"), Seq())
}

test("drop materialized view") {
test("drop and vacuum materialized view") {
flint
.materializedView()
.name(testMvName)
.query(testQuery)
.create()

sql(s"DROP MATERIALIZED VIEW $testMvName")

sql(s"VACUUM MATERIALIZED VIEW $testMvName")
flint.describeIndex(testFlintIndex) shouldBe empty
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ class FlintSparkSkippingIndexSqlITSuite extends FlintSparkSuite {
checkAnswer(result, Seq.empty)
}

test("drop skipping index") {
test("drop and vacuum skipping index") {
flint
.skippingIndex()
.onTable(testTable)
.addPartitions("year")
.create()

sql(s"DROP SKIPPING INDEX ON $testTable")

sql(s"VACUUM SKIPPING INDEX ON $testTable")
flint.describeIndex(testIndex) shouldBe empty
}
}

0 comments on commit 3787bc2

Please sign in to comment.