mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
add composed_data_type_output_format_mode
This commit is contained in:
parent
de626a88c8
commit
255b168a4e
@ -138,7 +138,7 @@ static std::initializer_list<std::pair<ClickHouseVersion, SettingsChangesHistory
|
|||||||
{"input_format_parquet_bloom_filter_push_down", false, true, "When reading Parquet files, skip whole row groups based on the WHERE/PREWHERE expressions and bloom filter in the Parquet metadata."},
|
{"input_format_parquet_bloom_filter_push_down", false, true, "When reading Parquet files, skip whole row groups based on the WHERE/PREWHERE expressions and bloom filter in the Parquet metadata."},
|
||||||
{"date_time_64_output_format_cut_trailing_zeros_align_to_groups_of_thousands", false, false, "Dynamically trim the trailing zeros of datetime64 values to adjust the output scale to (0, 3, 6), corresponding to 'seconds', 'milliseconds', and 'microseconds'."},
|
{"date_time_64_output_format_cut_trailing_zeros_align_to_groups_of_thousands", false, false, "Dynamically trim the trailing zeros of datetime64 values to adjust the output scale to (0, 3, 6), corresponding to 'seconds', 'milliseconds', and 'microseconds'."},
|
||||||
{"composed_data_type_output_format_mode", "default", "default", "New setting"},
|
{"composed_data_type_output_format_mode", "default", "default", "New setting"},
|
||||||
{"spark_text_output_format", false, false, "New setting"},
|
{"spark_text_output_format", "default", "default", "New setting"},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{"24.9",
|
{"24.9",
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
-- array format
|
-- array format --
|
||||||
[\'1\']
|
[\'1\']
|
||||||
[1, 2, abc, \'1\']
|
[1, 2, abc, \'1\']
|
||||||
[1, 2, abc, \'1\']
|
[1, 2, abc, \'1\']
|
||||||
[1, 2, abc, \'1\']
|
[1, 2, abc, \'1\']
|
||||||
[1, 2, abc, \'1\']
|
[1, 2, abc, \'1\']
|
||||||
-- map format
|
-- map format --
|
||||||
{1343 -> fe, afe -> fefe}
|
{1343 -> fe, afe -> fefe}
|
||||||
{1343 -> fe, afe -> fefe}
|
{1343 -> fe, afe -> fefe}
|
||||||
{1343 -> fe, afe -> fefe}
|
{1343 -> fe, afe -> fefe}
|
||||||
{1343 -> fe, afe -> fefe}
|
{1343 -> fe, afe -> fefe}
|
||||||
-- tuple format
|
-- tuple format --
|
||||||
(1, 3, abc)
|
(1, 3, abc)
|
||||||
(1, 3, abc)
|
(1, 3, abc)
|
||||||
(1, 3, abc)
|
(1, 3, abc)
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
SELECT '-- array format --';
|
SELECT '-- array format --';
|
||||||
SELECT CAST(array('\'1\'') , 'String') SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT CAST(array('\'1\'') , 'String') SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT CAST([materialize('1'), '2', 'abc', '\'1\''], 'String') SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT CAST([materialize('1'), '2', 'abc', '\'1\''], 'String') SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT CAST([materialize('1'), materialize('2'), 'abc', '\'1\''], 'String') SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT CAST([materialize('1'), materialize('2'), 'abc', '\'1\''], 'String') SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT CAST([materialize('1'), materialize('2'), materialize('abc'), '\'1\''], 'String') SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT CAST([materialize('1'), materialize('2'), materialize('abc'), '\'1\''], 'String') SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT CAST([materialize('1'), materialize('2'), materialize('abc'), materialize('\'1\'')], 'String') SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT CAST([materialize('1'), materialize('2'), materialize('abc'), materialize('\'1\'')], 'String') SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
|
|
||||||
SELECT '-- map format --';
|
SELECT '-- map format --';
|
||||||
SELECT toString(map('1343', 'fe', 'afe', 'fefe')) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString(map('1343', 'fe', 'afe', 'fefe')) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT toString(map(materialize('1343'), materialize('fe'), 'afe', 'fefe')) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString(map(materialize('1343'), materialize('fe'), 'afe', 'fefe')) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT toString(map(materialize('1343'), materialize('fe'), materialize('afe'), 'fefe')) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString(map(materialize('1343'), materialize('fe'), materialize('afe'), 'fefe')) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT toString(map(materialize('1343'), materialize('fe'), materialize('afe'), materialize('fefe'))) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString(map(materialize('1343'), materialize('fe'), materialize('afe'), materialize('fefe'))) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
|
|
||||||
SELECT '-- tuple format --';
|
SELECT '-- tuple format --';
|
||||||
SELECT toString(('1', '3', 'abc')) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString(('1', '3', 'abc')) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT toString((materialize('1'), '3', 'abc')) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString((materialize('1'), '3', 'abc')) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT toString((materialize('1'), materialize('3'), 'abc')) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString((materialize('1'), materialize('3'), 'abc')) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
SELECT toString((materialize('1'), materialize('3'), materialize('abc'))) SETTINGS composed_data_type_output_format_mode = "spark";
|
SELECT toString((materialize('1'), materialize('3'), materialize('abc'))) SETTINGS composed_data_type_output_format_mode = 'spark';
|
||||||
|
Loading…
Reference in New Issue
Block a user