Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Apr 19, 2015
1 parent dc48ba9 commit 7ac74d2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,11 @@ trait CheckAnalysis {
operator transformExpressionsUp {
case a: Attribute if !a.resolved =>
if (operator.childrenResolved) {
val nameParts = a match {
case UnresolvedAttribute(nameParts) => nameParts
case _ => Seq(a.name)
a match {
case UnresolvedAttribute(nameParts) =>
// Throw errors for specific problems with get field.
operator.resolveChildren(nameParts, resolver, throwErrors = true)
}
// Throw errors for specific problems with get field.
operator.resolveChildren(nameParts, resolver, throwErrors = true)
}

val from = operator.inputSet.map(_.name).mkString(", ")
Expand Down

0 comments on commit 7ac74d2

Please sign in to comment.