Skip to content

Commit

Permalink
Merge pull request ClickHouse#49486 from bigo-sg/test_hive_null_as_de…
Browse files Browse the repository at this point in the history
…fault

Set defaults_for_omitted_fields to true for hive text format
  • Loading branch information
alexey-milovidov authored Oct 13, 2023
2 parents 3c6ddb5 + 7cd24d0 commit 8a1363b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Processors/Formats/Impl/HiveTextRowInputFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ static FormatSettings updateFormatSettings(const FormatSettings & settings, cons
updated.skip_unknown_fields = true;
updated.with_names_use_header = true;
updated.date_time_input_format = FormatSettings::DateTimeInputFormat::BestEffort;
updated.defaults_for_omitted_fields = true;
updated.csv.delimiter = updated.hive_text.fields_delimiter;
if (settings.hive_text.input_field_names.empty())
updated.hive_text.input_field_names = header.getNames();
Expand Down

0 comments on commit 8a1363b

Please sign in to comment.