Skip to content

Commit 2be6c86

Browse files
authored
[GLUTEN-6262][CH]Json input format ignore key case #6263
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
1 parent 8300f3b commit 2be6c86

File tree

2 files changed

+2
-0
lines changed
  • backends-clickhouse/src/test/resources/text-data/json-settings
  • cpp-ch/local-engine/Common

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{"a":1,"b":2,"c":3}
2+
{"a":"a5", "B":"b6", "c":7}
23
{"a":"4"}
34
{"t":{"ta":"cc","tb":100,"tc":1.234}}
45
{"t":{"ta":"cc","tb":100,"td":"ignore"}}

cpp-ch/local-engine/Common/CHUtil.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,7 @@ void BackendInitializerUtil::initSettings(std::map<std::string, std::string> & b
747747
settings.set("input_format_parquet_import_nested", true);
748748
settings.set("input_format_json_read_numbers_as_strings", true);
749749
settings.set("input_format_json_read_bools_as_numbers", false);
750+
settings.set("input_format_json_ignore_key_case", true);
750751
settings.set("input_format_csv_trim_whitespaces", false);
751752
settings.set("input_format_csv_allow_cr_end_of_line", true);
752753
settings.set("output_format_orc_string_as_string", true);

0 commit comments

Comments
 (0)