Skip to content

Commit

Permalink
Avoid to extend arguments fully
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxGekk committed Jan 22, 2019
1 parent c6df730 commit 4dc4a2a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1544,9 +1544,10 @@ class JDBCSuite extends QueryTest
.load()

df.logicalPlan match {
case LogicalRelation(JDBCRelation(_, parts, _), _, _, _) =>
val whereClauses = parts.map(_.asInstanceOf[JDBCPartition].whereClause).toSet
assert(whereClauses === Set(
case lr: LogicalRelation if lr.relation.isInstanceOf[JDBCRelation] =>
val jdbcRelation = lr.relation.asInstanceOf[JDBCRelation]
val whereClauses = jdbcRelation.parts.map(_.asInstanceOf[JDBCPartition].whereClause)
assert(whereClauses.toSet === Set(
s""""T" < '$middle' or "T" is null""",
s""""T" >= '$middle'"""))
}
Expand Down

0 comments on commit 4dc4a2a

Please sign in to comment.