SuccessChanges

Summary

  1. [SPARK-26211][SQL] Fix InSet for binary, and struct and array with null. (commit: e96ba8430c693c3bcc9f6797a4779c8e9fadaaba) (details)
Commit e96ba8430c693c3bcc9f6797a4779c8e9fadaaba by wenchen
[SPARK-26211][SQL] Fix InSet for binary, and struct and array with null.
Currently `InSet` doesn't work properly for binary type, or struct and
array type with null value in the set. Because, as for binary type, the
`HashSet` doesn't work properly for `Array[Byte]`, and as for struct and
array type with null value in the set, the `ordering` will throw a
`NPE`.
Added a few tests.
Closes #23176 from ueshin/issues/SPARK-26211/inset.
Authored-by: Takuya UESHIN <ueshin@databricks.com> Signed-off-by:
Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit b9b68a6dc7d0f735163e980392ea957f2d589923)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(commit: e96ba8430c693c3bcc9f6797a4779c8e9fadaaba)
The file was modifiedsql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/PredicateSuite.scala (diff)
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala (diff)