Skip to content

Commit

Permalink
Check condition type in resolved()
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 24, 2015
1 parent 75a3ea6 commit aec6c7b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ case class Join(

// Joins are only resolved if they don't introduce ambiguous expression ids.
override lazy val resolved: Boolean = {
childrenResolved && expressions.forall(_.resolved) && selfJoinResolved
childrenResolved &&
expressions.forall(_.resolved) &&
selfJoinResolved &&
condition.forall(_.dataType == BooleanType)
}
}

Expand Down

0 comments on commit aec6c7b

Please sign in to comment.