Skip to content

Commit

Permalink
Fix IT failure
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <daichen@amazon.com>
  • Loading branch information
dai-chen committed Jul 11, 2023
1 parent 50610a2 commit e10d160
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,19 @@ class FlintSparkSkippingIndexITSuite
indexData should have size 2
}

test("should fail to manual refresh an incremental refreshing index") {
flint
.skippingIndex()
.onTable(testTable)
.addPartitions("year", "month")
.create()
flint.refreshIndex(testIndex, INCREMENTAL)

assertThrows[IllegalStateException] {
flint.refreshIndex(testIndex, FULL)
}
}

test("incremental refresh skipping index successfully") {
// Create Flint index and wait for complete
flint
Expand All @@ -201,19 +214,6 @@ class FlintSparkSkippingIndexITSuite
indexData should have size 2
}

test("should fail to manual refresh an incremental refreshing index") {
flint
.skippingIndex()
.onTable(testTable)
.addPartitions("year", "month")
.create()
flint.refreshIndex(testIndex, INCREMENTAL)

assertThrows[IllegalStateException] {
flint.refreshIndex(testIndex, FULL)
}
}

test("can have only 1 skipping index on a table") {
flint
.skippingIndex()
Expand Down

0 comments on commit e10d160

Please sign in to comment.