Github user dongjoon-hyun commented on the issue: https://github.com/apache/spark/pull/13976 Actually, that is not a bug, but I found that there exists a little difference between Spark and Hive with the following query. ``` SELECT inline(array(struct(a), struct(b))) FROM (SELECT 1 a, 2 b) T ``` In short, Spark does more strict type-checking, e.g., `[struct<a:int>, struct<b:int>]` is considered heterogeneous due to name difference. I only add more tests to clarify the cases. We cannot touch that because it depends on many things. The following query is a workaround which both Spark/Hive work. ``` SELECT inline(array(struct(a), named_struct('a', b))) FROM (SELECT 1 a, 2 b) T ```
--- 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