diff --git a/docs/sql-data-sources-csv.md b/docs/sql-data-sources-csv.md index 8008bc562082c..fd070d3264421 100644 --- a/docs/sql-data-sources-csv.md +++ b/docs/sql-data-sources-csv.md @@ -141,13 +141,13 @@ Data source options of CSV can be set via: nullValue - Sets the string representation of a null value. Since 2.0.1, this nullValue param applies to all supported types including the string type. + Sets the string that, when encountered in the CSV input, is treated as a SQL NULL. For example, if set to "NA", any field containing NA will be read as null. Since 2.0.1, this applies to all supported types including the string type. read/write nanValue NaN - Sets the string representation of a non-number value. + Sets the string that, when encountered in the CSV input, is treated as NaN (Not a Number) for float and double type columns. read @@ -237,7 +237,7 @@ Data source options of CSV can be set via: emptyValue (for reading), "" (for writing) - Sets the string representation of an empty value. + Sets the value to substitute when a quoted empty string ("") is encountered in the CSV input. Only applies to string type columns. Unlike nullValue (which matches input to produce null), this specifies the value to produce in the DataFrame. read/write