-
Notifications
You must be signed in to change notification settings - Fork 441
Fix schema/type inference issue #261
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
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a275120
Fix schema/type inference issue #216
tanwanirahul 8b4dbdd
Add testcases for #216
tanwanirahul b150c55
Adding a simple parse dataset for testing type/schema inference #216
tanwanirahul 9be0313
Bit of refactoring
tanwanirahul ff96172
Adding an end to end test case for type inference of simple parse dat…
tanwanirahul d36b4a8
Revert "Bit of refactoring"
tanwanirahul c20b852
Fix scalastyle issue - max length 100
tanwanirahul 18957e2
Bit of refactoring
tanwanirahul d41d5fb
Fix scalastyle issue - max length 100
tanwanirahul 9a1f428
Fix scalastyle issue - max length 100
tanwanirahul 80fbac4
Fix type
tanwanirahul bb510a6
Reverting the refactoring part
tanwanirahul 2c24965
Move end to end test case to CSV suite; Fix indentation comments
tanwanirahul d6424ef
Merge branch 'master' of github.com:tanwanirahul/spark-csv
tanwanirahul 890fadd
Resolving merge conflicts
tanwanirahul 52cd74f
Resolving merge conflicts
tanwanirahul 6f90a6b
Fix indentation issue
tanwanirahul 3d07d82
Revert build.sbt changes
tanwanirahul 718b467
Fix code style
tanwanirahul 5ef29b8
Indentation
tanwanirahul 6771184
Fix indentation issue
tanwanirahul 7141f35
Stylic corrections
HyukjinKwon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
A,B,C,D | ||
1,,, | ||
,1,, | ||
,,1, | ||
,,,1 |
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, does this not produceNulltype
after mergingNulltype
s?It looks the test
Merging Nulltypes should yeild Nulltype
is not covering this.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HyukjinKwon Please elaborate. Referring to doc comments in InferSchema.scala
/**
All null types should be replaced with String types at the end. This is what is happening right now?
If I understand you correctly, you feel there is a need for some more tests to be added. Could you please mention what that test is suppose to test?
As far as testing merging two nulltypes returning null type, is already covered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry. Please ignore my comment.