Commit e580bb0
[SPARK-18717][SQL] Make code generation for Scala Map work with immutable.Map also
## What changes were proposed in this pull request?
Fixes compile errors in generated code when user has case class with a `scala.collections.immutable.Map` instead of a `scala.collections.Map`. Since ArrayBasedMapData.toScalaMap returns the immutable version we can make it work with both.
## How was this patch tested?
Additional unit tests.
Author: Andrew Ray <ray.andrew@gmail.com>
Closes #16161 from aray/fix-map-codegen.
(cherry picked from commit 46d30ac)
Signed-off-by: Cheng Lian <lian@databricks.com>1 parent 7b5ea00 commit e580bb0
File tree
2 files changed
+13
-1
lines changed- sql
- catalyst/src/main/scala/org/apache/spark/sql/catalyst
- core/src/test/scala/org/apache/spark/sql
2 files changed
+13
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
1066 | 1075 | | |
1067 | 1076 | | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1068 | 1080 | | |
1069 | 1081 | | |
1070 | 1082 | | |
| |||
0 commit comments