Skip to content

Commit

Permalink
[GLUTEN-6262][CH]Json input format ignore key case #6263
Browse files Browse the repository at this point in the history
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)

(Fixes: #6262)

this pr is depend on clickhouse pr: ClickHouse/ClickHouse#61750

How was this patch tested?
test by ut
  • Loading branch information
KevinyhZou authored Jul 8, 2024
1 parent 8300f3b commit 2be6c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{"a":1,"b":2,"c":3}
{"a":"a5", "B":"b6", "c":7}
{"a":"4"}
{"t":{"ta":"cc","tb":100,"tc":1.234}}
{"t":{"ta":"cc","tb":100,"td":"ignore"}}
1 change: 1 addition & 0 deletions cpp-ch/local-engine/Common/CHUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ void BackendInitializerUtil::initSettings(std::map<std::string, std::string> & b
settings.set("input_format_parquet_import_nested", true);
settings.set("input_format_json_read_numbers_as_strings", true);
settings.set("input_format_json_read_bools_as_numbers", false);
settings.set("input_format_json_ignore_key_case", true);
settings.set("input_format_csv_trim_whitespaces", false);
settings.set("input_format_csv_allow_cr_end_of_line", true);
settings.set("output_format_orc_string_as_string", true);
Expand Down

0 comments on commit 2be6c86

Please sign in to comment.