GitHub user cloud-fan opened a pull request: https://github.com/apache/spark/pull/15929
[SPARK-18053][SQL] compare unsafe and safe complex-type values correctly ## What changes were proposed in this pull request? In Spark SQL, some expression may output safe format values, e.g. `CreateArray`, `CreateStruct`, `Cast`, etc. When we compare 2 values, we should be able to compare safe and unsafe formats. The `GreaterThan`, `LessThan`, etc. in Spark SQL already handles it, but the `EqualTo` doesn't. This PR fixes it. ## How was this patch tested? new unit test and regression test You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloud-fan/spark type-aware Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15929.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #15929 ---- commit 00c432a23336d20634f2caf957a4df1c0c23f78e Author: Wenchen Fan <wenc...@databricks.com> Date: 2016-11-18T07:51:44Z compare unsafe and safe complex-type values correctly ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org