Skip to content

Commit

Permalink
[SPARK-5141][SQL]CaseInsensitiveMap throws java.io.NotSerializableExc…
Browse files Browse the repository at this point in the history
…eption

CaseInsensitiveMap throws java.io.NotSerializableException.

Author: luogankun <[email protected]>

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

b6d63d5 [luogankun] [SPARK-5141]CaseInsensitiveMap throws java.io.NotSerializableException
  • Loading branch information
luogankun authored and rxin committed Jan 10, 2015
1 parent 4554529 commit 545dfcb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ private[sql] case class CreateTableUsing(
/**
* 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))

Expand Down

0 comments on commit 545dfcb

Please sign in to comment.