Skip to content

Commit

Permalink
Fix broken IT
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed May 22, 2024
1 parent b21cfb1 commit af412f2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class FlintDataSourceV2ITSuite
}
}

// FIXME
ignore("scan with filter push-down") {
test("scan with filter push-down") {
val indexName = "t0003"
withIndexName(indexName) {
val mappings = """{
Expand Down Expand Up @@ -105,7 +104,9 @@ class FlintDataSourceV2ITSuite

val df2 = df.filter($"aText".contains("second"))
checkFiltersRemoved(df2)
checkPushedInfo(df2, "PushedPredicates: [aText IS NOT NULL, aText LIKE '%second%']")
checkPushedInfo(
df2,
"PushedPredicates: [aText IS NOT NULL, aText LIKE '%second%' ESCAPE '\\']")
checkAnswer(df2, Row(2, "b", "i am second"))

val df3 =
Expand All @@ -118,7 +119,7 @@ class FlintDataSourceV2ITSuite
checkFiltersRemoved(df4)
checkPushedInfo(
df4,
"PushedPredicates: [aInt IS NOT NULL, aText IS NOT NULL, aInt > 1, aText LIKE '%second%']")
"PushedPredicates: [aInt IS NOT NULL, aText IS NOT NULL, aInt > 1, aText LIKE '%second%' ESCAPE '\\']")
checkAnswer(df4, Row(2, "b", "i am second"))
}
}
Expand Down

0 comments on commit af412f2

Please sign in to comment.