Skip to content

Commit

Permalink
Update datafusion/core/src/datasource/file_format/csv.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
dhegberg and alamb authored Nov 3, 2024
1 parent d76c7b7 commit a6224b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions datafusion/core/src/datasource/file_format/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ impl CsvFormat {
.unwrap_or(state.config_options().catalog.has_header),
)
.with_delimiter(self.options.delimiter)
// Support literal NULL or empty string as null
.with_null_regex(Regex::new(r"^NULL$|^$").unwrap());

if let Some(comment) = self.options.comment {
Expand Down

0 comments on commit a6224b3

Please sign in to comment.