Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove added test.
  • Loading branch information
viirya committed Jul 12, 2018
commit 6eda8d2e8e56a9d9027d6cac49d23684396cb0ea
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,4 @@ class LogicalPlanSuite extends SparkFunSuite {
OneRowRelation())
assert(result.sameResult(expected))
}

test("Logical plan with missing inputs should be unresolved") {
// Normally we won't add a missing resolved reference into a logical plan,
// but a valid query like `df.select(df("name")).filter(df("id") === 0)` can make a query
// like this.
val relation = LocalRelation(AttributeReference("a", IntegerType, nullable = true)())
val plan = Project(Stream(AttributeReference("b", IntegerType, nullable = true)()), relation)
assert(plan.expressions.forall(_.resolved))
assert(plan.childrenResolved)
assert(plan.missingInput.nonEmpty)
assert(!plan.resolved)
}
}