Skip to content
Snippets Groups Projects
Commit e580bb03 authored by Andrew Ray's avatar Andrew Ray Committed by Cheng Lian
Browse files

[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 46d30ac4)
Signed-off-by: default avatarCheng Lian <lian@databricks.com>
parent 7b5ea000
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment