Uh oh!
There was an error while loading. Please reload this page.
[SPARK-13899][SQL] Produce InternalRow instead of external Row at CSV data source - #11717
Closed
HyukjinKwon wants to merge 6 commits into
Closed
[SPARK-13899][SQL] Produce InternalRow instead of external Row at CSV data source#11717HyukjinKwon wants to merge 6 commits into
HyukjinKwon wants to merge 6 commits into
Conversation
HyukjinKwon
commented
Mar 15, 2016
MemberAuthor
SparkQA
commented
Mar 15, 2016
Test build #53179 has finished for PR 11717 at commit
|
SparkQA
commented
Mar 15, 2016
Test build #53180 has finished for PR 11717 at commit
|
HyukjinKwon
commented
Mar 15, 2016
MemberAuthor
This PR would allow to infer |
SparkQA
commented
Mar 15, 2016
Test build #53189 has finished for PR 11717 at commit
|
| case dt: DecimalType => | ||
| val value = new BigDecimal(datum.replaceAll(",", "")) | ||
| Decimal(value, dt.precision, dt.scale) | ||
| // TODO(hossein): would be good to support other common timestamp formats |
rxin
commented
Mar 16, 2016
Contributor
Thanks - I'm going to merge this. There is a tiny comment. Can you remove that comment in one of your other pr? |
HyukjinKwon
commented
Mar 16, 2016
MemberAuthor
roygao94 pushed a commit
to roygao94/spark
that referenced
this pull request
Mar 22, 2016
… data source ## What changes were proposed in this pull request? https://issues.apache.org/jira/browse/SPARK-13899 This PR makes CSV data source produce `InternalRow` instead of `Row`. Basically, this resembles JSON data source. It uses the same codes for casting. ## How was this patch tested? Unit tests were used within IDE and code style was checked by `./dev/run_tests`. Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#11717 from HyukjinKwon/SPARK-13899.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
https://issues.apache.org/jira/browse/SPARK-13899
This PR makes CSV data source produce
InternalRowinstead ofRow.Basically, this resembles JSON data source. It uses the same codes for casting.
How was this patch tested?
Unit tests were used within IDE and code style was checked by
./dev/run_tests.