Skip to content
Snippets Groups Projects
Commit 545dfcb9 authored by luogankun's avatar luogankun Committed by Reynold Xin
Browse files

[SPARK-5141][SQL]CaseInsensitiveMap throws java.io.NotSerializableException

CaseInsensitiveMap throws java.io.NotSerializableException.

Author: luogankun <luogankun@gmail.com>

Closes #3944 from luogankun/SPARK-5141 and squashes the following commits:

b6d63d5 [luogankun] [SPARK-5141]CaseInsensitiveMap throws java.io.NotSerializableException
parent 4554529d
No related branches found
No related tags found
No related merge requests found
...@@ -110,7 +110,8 @@ private[sql] case class CreateTableUsing( ...@@ -110,7 +110,8 @@ private[sql] case class CreateTableUsing(
/** /**
* Builds a map in which keys are case insensitive * Builds a map in which keys are case insensitive
*/ */
protected class CaseInsensitiveMap(map: Map[String, String]) extends Map[String, String] { protected class CaseInsensitiveMap(map: Map[String, String]) extends Map[String, String]
with Serializable {
val baseMap = map.map(kv => kv.copy(_1 = kv._1.toLowerCase)) val baseMap = map.map(kv => kv.copy(_1 = kv._1.toLowerCase))
......
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