Skip to content

Commit

Permalink
Wildcard queries now parse the * character correctly. Update tests. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaiera authored Apr 3, 2020
1 parent 3b7380d commit b838ff8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -998,11 +998,6 @@ class AbstractScalaEsScalaSparkSQL(prefix: String, readMetadata: jl.Boolean, pus
val df = esDataSource("pd_starts_with")
var filter = df.filter(df("airport").startsWith("O"))

if (strictPushDown) {
assertEquals(0, filter.count())
return
}

if (!keepHandledFilters) {
// term query pick field with multi values
assertEquals(2, filter.count())
Expand All @@ -1019,11 +1014,6 @@ class AbstractScalaEsScalaSparkSQL(prefix: String, readMetadata: jl.Boolean, pus
val df = esDataSource("pd_ends_with")
var filter = df.filter(df("airport").endsWith("O"))

if (strictPushDown) {
assertEquals(0, filter.count())
return
}

if (!keepHandledFilters) {
// term query pick field with multi values
assertEquals(2, filter.count())
Expand All @@ -1048,11 +1038,6 @@ class AbstractScalaEsScalaSparkSQL(prefix: String, readMetadata: jl.Boolean, pus
val df = esDataSource("pd_and")
var filter = df.filter(df("reason").isNotNull.and(df("airport").endsWith("O")))

if (strictPushDown) {
assertEquals(0, filter.count())
return
}

assertEquals(1, filter.count())
assertEquals("jan", filter.select("tag").take(1)(0)(0))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,11 +1055,6 @@ class AbstractScalaEsScalaSparkSQL(prefix: String, readMetadata: jl.Boolean, pus
val df = esDataSource("pd_starts_with")
var filter = df.filter(df("airport").startsWith("O"))

if (strictPushDown) {
assertEquals(0, filter.count())
return
}

if (!keepHandledFilters) {
// term query pick field with multi values
assertEquals(2, filter.count())
Expand All @@ -1076,11 +1071,6 @@ class AbstractScalaEsScalaSparkSQL(prefix: String, readMetadata: jl.Boolean, pus
val df = esDataSource("pd_ends_with")
var filter = df.filter(df("airport").endsWith("O"))

if (strictPushDown) {
assertEquals(0, filter.count())
return
}

if (!keepHandledFilters) {
// term query pick field with multi values
assertEquals(2, filter.count())
Expand All @@ -1105,11 +1095,6 @@ class AbstractScalaEsScalaSparkSQL(prefix: String, readMetadata: jl.Boolean, pus
val df = esDataSource("pd_and")
var filter = df.filter(df("reason").isNotNull.and(df("airport").endsWith("O")))

if (strictPushDown) {
assertEquals(0, filter.count())
return
}

assertEquals(1, filter.count())
assertEquals("jan", filter.select("tag").take(1)(0)(0))
}
Expand Down

0 comments on commit b838ff8

Please sign in to comment.