Skip to content

Commit 545dfcb

Browse files
luogankunrxin
authored andcommitted
[SPARK-5141][SQL]CaseInsensitiveMap throws java.io.NotSerializableException
CaseInsensitiveMap throws java.io.NotSerializableException. Author: luogankun <[email protected]> Closes #3944 from luogankun/SPARK-5141 and squashes the following commits: b6d63d5 [luogankun] [SPARK-5141]CaseInsensitiveMap throws java.io.NotSerializableException
1 parent 4554529 commit 545dfcb

File tree

1 file changed

+2
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/sources

1 file changed

+2
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/sources/ddl.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ private[sql] case class CreateTableUsing(
110110
/**
111111
* Builds a map in which keys are case insensitive
112112
*/
113-
protected class CaseInsensitiveMap(map: Map[String, String]) extends Map[String, String] {
113+
protected class CaseInsensitiveMap(map: Map[String, String]) extends Map[String, String]
114+
with Serializable {
114115

115116
val baseMap = map.map(kv => kv.copy(_1 = kv._1.toLowerCase))
116117

0 commit comments

Comments
 (0)