Skip to content

Commit

Permalink
[FLINK-4565] [table] Support for SQL IN operator - move case of equal…
Browse files Browse the repository at this point in the history
… check

This closes apache#4493.
  • Loading branch information
tedyu authored and twalthr committed Aug 9, 2017
1 parent 31b86f6 commit 5412baa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ case class In(expression: Expression, elements: Seq[Expression]) extends Express
s"The sub-query table '$name' must not have more than one column.")
}
(expression.resultType, tableOutput.head.resultType) match {
case (lType, rType) if isNumeric(lType) && isNumeric(rType) => ValidationSuccess
case (lType, rType) if lType == rType => ValidationSuccess
case (lType, rType) if isNumeric(lType) && isNumeric(rType) => ValidationSuccess
case (lType, rType) if isArray(lType) && lType.getTypeClass == rType.getTypeClass =>
ValidationSuccess
case (lType, rType) =>
Expand Down

0 comments on commit 5412baa

Please sign in to comment.