-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SPARK-10441][SQL] Save data correctly to json. #8597
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
Conversation
Test build #41992 has finished for PR 8597 at commit
|
Test build #41993 has finished for PR 8597 at commit
|
CatalystTypeConverters.convertToScala(catalystValue, dataType) | ||
val scalaV = CatalystTypeConverters.convertToScala(catalystValue, dataType) | ||
|
||
scalaV |
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.
Nit: Remove scalaV
?
Generally looks good except for a few minor issues. |
Test build #42018 has finished for PR 8597 at commit
|
Test build #1720 has finished for PR 8597 at commit
|
Test build #42026 has finished for PR 8597 at commit
|
Test build #1721 has finished for PR 8597 at commit
|
} else { | ||
None | ||
} | ||
} |
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.
@JoshRosen Can you take a look at my change to RandomDataGenerator
?
LGTM |
Test build #1725 has finished for PR 8597 at commit
|
Test build #42118 has finished for PR 8597 at commit
|
Test build #42119 has finished for PR 8597 at commit
|
case (VALUE_STRING, DoubleType) => | ||
// Special case handling for NaN and Infinity. | ||
val value = parser.getText | ||
if (value.equals("NaN") || value.equals("Infinity") || value.equals("-Infinity")) { |
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.
Same as above.
A few minor issues. Otherwise LGTM. |
Test build #42136 has finished for PR 8597 at commit
|
Thanks, merging to master. |
https://issues.apache.org/jira/browse/SPARK-10441 This is the backport of #8597 for 1.5 branch. Author: Yin Huai <[email protected]> Closes #8655 from yhuai/timestampJson-1.5.
https://issues.apache.org/jira/browse/SPARK-10441 This is the backport of apache#8597 for 1.5 branch. Author: Yin Huai <[email protected]> Closes apache#8655 from yhuai/timestampJson-1.5. (cherry picked from commit 7fd4674)
https://issues.apache.org/jira/browse/SPARK-10441