Github user cloud-fan commented on the issue: https://github.com/apache/spark/pull/15956 > Spark SQL currently has a restriction that we just don't allow map types to be used in equality comparison at all, but I don't want to structure code in a way that would make it harder to support that in the future. If we wanna support equality comparison for map type in the future, we can just update the type checking logic for `BinaryComparison`. For now I think it's better to forbid users to do this, to avoid confusing behaviors, e.g. `SELECT MAP(1,2) = MAP(1,2)` returns false.
--- 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