Github user concretevitamin commented on a diff in the pull request:
https://github.com/apache/spark/pull/1205#discussion_r14167337
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
---
@@ -370,6 +370,16 @@ class HiveQuerySuite extends HiveComparisonTest {
}
}
+ test("SPARK-2263: Insert Map<K, V> values") {
+ hql("CREATE TABLE m(value MAP<INT, STRING>)")
+ hql("INSERT OVERWRITE TABLE m SELECT MAP(key, value) FROM src LIMIT
10")
+ hql("SELECT * FROM m").zip(hql("SELECT * FROM src LIMIT 10")).map {
--- End diff --
Perhaps `collect()` first then do the mapping w/ assertions?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---