GitHub user gengliangwang opened a pull request:

    https://github.com/apache/spark/pull/22553

    [SPARK-25541][SQL] CaseInsensitiveMap should be serializable after '-' or 
'filterKeys'

    ## What changes were proposed in this pull request?
    
    `CaseInsensitiveMap` is declared as Serializable. However, it is no 
serializable after `-` operator or `filterKeys` method.
    
    This PR fix the issue by  overriding the operator `-` and method 
`filterKeys`. So the we can avoid potential `NotSerializableException` on using 
`CaseInsensitiveMap`.
    
    ## How was this patch tested?
    
    New test suite.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gengliangwang/spark fixCaseInsensitiveMap

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22553.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22553
    
----
commit 54ace1541a8db2e49daeda6b5573193527a95f24
Author: Gengliang Wang <gengliang.wang@...>
Date:   2018-09-26T06:36:53Z

    fix and add test suite

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to