[MINOR][DOCS] Fix wrong data types in JSON Datasets example.#12290
Closed
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:minor_fix_type_in_json_example
Closed
[MINOR][DOCS] Fix wrong data types in JSON Datasets example.#12290dongjoon-hyun wants to merge 1 commit intoapache:masterfrom dongjoon-hyun:minor_fix_type_in_json_example
dongjoon-hyun wants to merge 1 commit intoapache:masterfrom
dongjoon-hyun:minor_fix_type_in_json_example
Conversation
|
Test build #55493 has finished for PR 12290 at commit
|
Member
|
Did you verify this is what is printed if you run the example? then that makes sense. |
Member
Author
|
Sure, I verified on master branch. |
Member
Author
|
Other examples in By the way, as you requested, I cleanly synced, built and tested this again a minute ago. I hope it helps your review. scala> val path = "examples/src/main/resources/people.json"
path: String = examples/src/main/resources/people.json
scala> val people = sqlContext.read.json(path)
people: org.apache.spark.sql.DataFrame = [age: bigint, name: string]
scala> people.printSchema()
root
|-- age: long (nullable = true)
|-- name: string (nullable = true)Thank you, @srowen . |
Member
|
Merged to master |
Member
Author
|
Thank you for merging, @srowen . |
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 free
to 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?
This PR fixes the
agedata types fromintegertolonginSQL Programming Guide: JSON Datasets.How was this patch tested?
Manual.