Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-12901][SQL] Refactor options for JSON and CSV datasource (not case class and same format). #10895

Closed
wants to merge 1 commit into from

Conversation

HyukjinKwon
Copy link
Member

https://issues.apache.org/jira/browse/SPARK-12901
This PR refactors the options in JSON and CSV datasources.

In more details,

  1. JSONOptions uses the same format as CSVOptions.
  2. Not case classes.
  3. CSVRelation that does not have to be serializable (it was with Serializable but I removed)

@SparkQA
Copy link

SparkQA commented Jan 25, 2016

Test build #49977 has finished for PR 10895 at commit 3770ffb.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Jan 25, 2016

Thanks - I've merged this.

@asfgit asfgit closed this in 3adebfc Jan 25, 2016
@yhuai
Copy link
Contributor

yhuai commented Jan 25, 2016

@HyukjinKwon If you get a chance, can you fit the scala compilation.


private[sql] case class CSVParameters(@transient parameters: Map[String, String]) extends Logging {
private[sql] class CSVOptions(
@transient parameters: Map[String, String])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need @transient private val at here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's the right fix.

@yhuai
Copy link
Contributor

yhuai commented Jan 25, 2016

I have pushed 00026fa to fix the 2.11 build.

@HyukjinKwon
Copy link
Member Author

Sorry, I just checked this notification. Thank you.

@HyukjinKwon HyukjinKwon deleted the SPARK-12901 branch September 23, 2016 18:28
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.

5 participants