Skip to content

Conversation

@luogankun
Copy link
Contributor

CaseInsensitiveMap throws java.io.NotSerializableException.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@scwf
Copy link
Contributor

scwf commented Jan 8, 2015

Aactually i do not think we should make CaseInsensitiveMap serializable since it only used to pass parameters in driver

@rxin
Copy link
Contributor

rxin commented Jan 9, 2015

Can you give more information on cases when this causes problem?

@luogankun
Copy link
Contributor Author

According to Yin Huai in https://issues.apache.org/jira/browse/SPARK-5141 , set jdbcProps transient. Resolved this issue. I will close the pr.

@luogankun luogankun closed this Jan 9, 2015
@yhuai
Copy link
Contributor

yhuai commented Jan 9, 2015

@rxin CaseInsensitiveMap is used to pass options to a user defined relation resolver for creating a relation. If this map is passed into the created relation, we will try to serialize it with the closure.

@marmbrus and I talked about it offline yesterday. Maybe it is a good idea to just make it serializable. So, developers will not need to worry about this issue at all.

@rxin
Copy link
Contributor

rxin commented Jan 9, 2015

sgtm to make it serializable, and also fixing the transient problem.

@yhuai
Copy link
Contributor

yhuai commented Jan 9, 2015

@luogankun Can you reopen it? Thank you and sorry about the inconvenience.

@luogankun luogankun reopened this Jan 10, 2015
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@marmbrus
Copy link
Contributor

ok to test

@SparkQA
Copy link

SparkQA commented Jan 10, 2015

Test build #25352 has started for PR 3944 at commit b6d63d5.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 10, 2015

Test build #25352 has finished for PR 3944 at commit b6d63d5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • protected class CaseInsensitiveMap(map: Map[String, String]) extends Map[String, String]

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25352/
Test PASSed.

@scwf
Copy link
Contributor

scwf commented Jan 10, 2015

oh, since users may pass the CaseInsensitiveMap into scan builder relation, make it Serializable more robust. this LGTM.

@rxin
Copy link
Contributor

rxin commented Jan 10, 2015

Merging in master. Thanks!

@asfgit asfgit closed this in 545dfcb Jan 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants