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

#60 provide type for custom columns #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kostjas
Copy link

@kostjas kostjas commented Jun 30, 2015

If you are not using userSchema by default all fields in csv file are assumed to be StringType.
This commit adds possibility to setup types for fields which are not supposed to be as StringType.

Usage:

TestSQLContext.csvFile(carsTypedColumnsFile, fieldsTypeMap = Map("price" -> DoubleType, "new" -> BooleanType))

@andrewrothstein
Copy link

+1

@falaki
Copy link
Member

falaki commented Jul 22, 2015

@kostjas thanks for submitting this. Would you please rebase this? Also please add unit tests for CsvFastSuite as well.

@andrewrothstein
Copy link

@falaki I rebased @kostjas branch and added a unit test to CsvFastSuite at andrewrothstein/spark-csv:master. Should I raise a separate pull request?

@falaki
Copy link
Member

falaki commented Jul 22, 2015

If @kostjas is not interested in following up or does not have time for it, by all means. @kspitsyn What is your input?

@kostjas
Copy link
Author

kostjas commented Jul 23, 2015

I rebased and squashed my commits into one. However if @andrewrothstein would like to accumulate fixes of several issues and push them simultaneously into master, I do not have objections.

@kostjas
Copy link
Author

kostjas commented Jul 23, 2015

As I see pull request for #107 is ready 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants