-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-2060][SQL] Querying JSON Datasets with SQL and DSL in Spark SQL #999
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
38 commits
Select commit
Hold shift + click to select a range
f31065f
A query plan or a SchemaRDD can print out its schema.
yhuai f45583b
Infer the schema of a JSON dataset (a text file with one JSON object …
yhuai af91b23
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 0576406
Add Apache license header.
yhuai f3ce176
After type conflict resolution, if a NullType is found, StringType is…
yhuai a2313a6
Address PR comments.
yhuai 666b957
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 0387523
Address PR comments.
yhuai 52a2275
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 8846af5
API doc.
yhuai 65b87f0
Fix sampling...
yhuai 4325475
If a sampled dataset is used for schema inferring, update the schema …
yhuai a5a4b52
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 8ffed79
Update the example.
yhuai 66f9e76
Update docs and use the entire dataset to infer the schema.
yhuai 8347f2e
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 6df0891
Apache header.
yhuai ab810b0
Make JsonRDD private.
yhuai d0bd412
Merge remote-tracking branch 'upstream/master' into newJson
yhuai cff84cc
Use a SchemaRDD for a JSON dataset.
yhuai 7027634
Java API.
yhuai 9df8c5a
Python API.
yhuai 4fbddf0
Programming guide.
yhuai 6d20b85
Merge remote-tracking branch 'upstream/master' into newJson
yhuai e7a6c19
SchemaRDD.javaToPython should convert a field with the StructType to …
yhuai 83013fb
Update Java Example.
yhuai 6a5f5ef
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 7ea750e
marmbrus's comments.
yhuai d7a005c
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 1f908ce
Remove extra line.
yhuai 5428451
Newline
yhuai 79ea9ba
Fix typos.
yhuai e2773a6
Merge remote-tracking branch 'upstream/master' into newJson
yhuai ce31c81
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 94ffdaa
Remove "get" from method names.
yhuai bc9ac51
Merge remote-tracking branch 'upstream/master' into newJson
yhuai ce8eedd
rxin's comments.
yhuai 227e89e
Merge remote-tracking branch 'upstream/master' into newJson
yhuai 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
| {"name":"Michael"} | ||
| {"name":"Andy", "age":30} | ||
| {"name":"Justin", "age":19} |
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
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
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
Oops, something went wrong.
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.
do we need to import all of these?
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.
If the console is primarily for developers then I find it pretty useful to have all the sorts of things I'd want for debugging in scope. This is how hive/console is already.