aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/compatibility/src
diff options
context:
space:
mode:
authorDilip Biswal <dbiswal@us.ibm.com>2015-10-21 14:29:03 -0700
committerMichael Armbrust <michael@databricks.com>2015-10-21 14:29:03 -0700
commitdce2f8c9d74bda46f3c7a7ebe7372b04d6b17a61 (patch)
treeeb664af1f61d2ec57589c9bd75ce914e80015ff9 /sql/hive/compatibility/src
parent19ad18638e27cc7b403ea98c4f9f40a940932e30 (diff)
downloadspark-dce2f8c9d74bda46f3c7a7ebe7372b04d6b17a61.tar.gz
spark-dce2f8c9d74bda46f3c7a7ebe7372b04d6b17a61.tar.bz2
spark-dce2f8c9d74bda46f3c7a7ebe7372b04d6b17a61.zip
[SPARK-8654][SQL] Analysis exception when using NULL IN (...) : invalid cast
In the analysis phase , while processing the rules for IN predicate, we compare the in-list types to the lhs expression type and generate cast operation if necessary. In the case of NULL [NOT] IN expr1 , we end up generating cast between in list types to NULL like cast (1 as NULL) which is not a valid cast. The fix is to find a common type between LHS and RHS expressions and cast all the expression to the common type. Author: Dilip Biswal <dbiswal@us.ibm.com> This patch had conflicts when merged, resolved by Committer: Michael Armbrust <michael@databricks.com> Closes #9036 from dilipbiswal/spark_8654_new.
Diffstat (limited to 'sql/hive/compatibility/src')
0 files changed, 0 insertions, 0 deletions