Fix tests

This commit is contained in:
avogar 2022-09-15 18:20:17 +00:00
parent 982b9baeec
commit ef7f7b30aa
5 changed files with 8 additions and 7 deletions

View File

@ -1139,7 +1139,7 @@ SELECT * FROM json_each_row_nested
- [input_format_import_nested_json](../operations/settings/settings.md#input_format_import_nested_json) - map nested JSON data to nested tables (it works for JSONEachRow format). Default value - `false`.
- [input_format_json_read_bools_as_numbers](../operations/settings/settings.md#input_format_json_read_bools_as_numbers) - allow to parse bools as numbers in JSON input formats. Default value - `true`.
- [input_format_json_read_numbers_as_strings](../operations/settings/settings.md#input_format_json_read_numbers_as_strings) - allow to parse numbers as strings in JSON input formats. Default value - `true`.
- [input_format_json_read_numbers_as_strings](../operations/settings/settings.md#input_format_json_read_numbers_as_strings) - allow to parse numbers as strings in JSON input formats. Default value - `false`.
- [output_format_json_quote_64bit_integers](../operations/settings/settings.md#output_format_json_quote_64bit_integers) - controls quoting of 64-bit integers in JSON output format. Default value - `true`.
- [output_format_json_quote_denormals](../operations/settings/settings.md#output_format_json_quote_denormals) - enables '+nan', '-nan', '+inf', '-inf' outputs in JSON output format. Default value - `false`.
- [output_format_json_quote_decimals](../operations/settings/settings.md#output_format_json_quote_decimals) - controls quoting of decimals in JSON output format. Default value - `false`.

View File

@ -3698,7 +3698,7 @@ Enabled by default.
Allow parsing numbers as strings in JSON input formats.
Enabled by default.
Disabled by default.
### output_format_json_quote_64bit_integers {#output_format_json_quote_64bit_integers}

View File

@ -728,7 +728,7 @@ static constexpr UInt64 operator""_GiB(unsigned long long value)
M(Bool, input_format_json_read_bools_as_numbers, true, "Allow to parse bools as numbers in JSON input formats", 0) \
M(Bool, input_format_json_try_infer_numbers_from_strings, true, "Try to infer numbers from string fields while schema inference", 0) \
M(Bool, input_format_json_use_metadata, true, "For JSON input format this controls whether format parser should check if data types from input metadata match data types from the header", 0) \
M(Bool, input_format_json_read_numbers_as_strings, true, "Allow to parse numbers as strings in JSON input formats", 0) \
M(Bool, input_format_json_read_numbers_as_strings, false, "Allow to parse numbers as strings in JSON input formats", 0) \
M(Bool, input_format_try_infer_integers, true, "Try to infer numbers from string fields while schema inference in text formats", 0) \
M(Bool, input_format_try_infer_dates, true, "Try to infer dates from string fields while schema inference in text formats", 0) \
M(Bool, input_format_try_infer_datetimes, true, "Try to infer datetimes from string fields while schema inference in text formats", 0) \

View File

@ -1,5 +1,6 @@
-- Tags: no-fasttest
set input_format_json_read_numbers_as_strings=1;
select * from format(JSONEachRow, '{"x" : 123}\n{"x" : "str"}');
select * from format(JSONEachRow, '{"x" : [123, "str"]}');
select * from format(JSONEachRow, '{"x" : [123, "456"]}\n{"x" : ["str", "rts"]}');

View File

@ -19,10 +19,10 @@ e3231b1c8187de4da6752d692b2ddba9 -
JSONCompactStringsEachRowWithNames, true
e3231b1c8187de4da6752d692b2ddba9 -
JSONCompactEachRowWithNamesAndTypes, false
21302d11da0bf8d37ab599e28a51bac2 -
d40c4327c63eded184eee185a5330e12 -
JSONCompactEachRowWithNamesAndTypes, true
21302d11da0bf8d37ab599e28a51bac2 -
d40c4327c63eded184eee185a5330e12 -
JSONCompactStringsEachRowWithNamesAndTypes, false
21302d11da0bf8d37ab599e28a51bac2 -
d40c4327c63eded184eee185a5330e12 -
JSONCompactStringsEachRowWithNamesAndTypes, true
21302d11da0bf8d37ab599e28a51bac2 -
d40c4327c63eded184eee185a5330e12 -