-
- Downloads
[SPARK-14990][SQL] Fix checkForSameTypeInputExpr (ignore nullability)
## What changes were proposed in this pull request? This patch fixes a bug in TypeUtils.checkForSameTypeInputExpr. Previously the code was testing on strict equality, which does not taking nullability into account. This is based on https://github.com/apache/spark/pull/12768. This patch fixed a bug there (with empty expression) and added a test case. ## How was this patch tested? Added a new test suite and test case. Closes #12768. Author: Reynold Xin <rxin@databricks.com> Author: Oleg Danilov <oleg.danilov@wandisco.com> Closes #13208 from rxin/SPARK-14990.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TypeUtils.scala 10 additions, 4 deletions.../scala/org/apache/spark/sql/catalyst/util/TypeUtils.scala
- sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/util/TypeUtilsSuite.scala 46 additions, 0 deletions...a/org/apache/spark/sql/catalyst/util/TypeUtilsSuite.scala
Please register or sign in to comment