-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-16462][SPARK-16460][SPARK-15144][SQL] Make CSV cast null values properly #14118
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
Changes from all commits
e782616
bf01cea
f58e33d
74b4dd8
d5357f9
365cbfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -375,7 +375,8 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging { | |
| * from values being read should be skipped.</li> | ||
| * <li>`ignoreTrailingWhiteSpace` (default `false`): defines whether or not trailing | ||
| * whitespaces from values being read should be skipped.</li> | ||
| * <li>`nullValue` (default empty string): sets the string representation of a null value.</li> | ||
| * <li>`nullValue` (default empty string): sets the string representation of a null value. Since | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BTW, there would be the same documentation in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh thanks! Indeed there are two occurrences (one in |
||
| * 2.0.1, this applies to all supported types including the string type.</li> | ||
| * <li>`nanValue` (default `NaN`): sets the string representation of a non-number" value.</li> | ||
| * <li>`positiveInf` (default `Inf`): sets the string representation of a positive infinity | ||
| * value.</li> | ||
|
|
||
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.
I think you can omit the "since x.y.z" in this PR. The new text will be in the docs for the version it applies to and not earlier ones.
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.
This patch introduces a behavior change, i.e. how we deal with
nullValuefor the string type. So let's keep the "since x.y.z" thing for people to find a clue?