2024-07-28 23:40:05 +00:00
|
|
|
-- The default limit works.
|
2024-07-30 07:29:16 +00:00
|
|
|
SELECT * FROM format("JSONCompactEachRow", 'x UInt32, y UInt32', REPEAT('[1,1,', 100000)) SETTINGS input_format_json_compact_allow_variable_number_of_columns = 1; -- { serverError TOO_DEEP_RECURSION, INCORRECT_DATA }
|
2024-07-28 23:40:05 +00:00
|
|
|
-- Even if we relax the limit, it is also safe.
|
|
|
|
SET input_format_json_max_depth = 100000;
|
2024-07-30 07:29:16 +00:00
|
|
|
SELECT * FROM format("JSONCompactEachRow", 'x UInt32, y UInt32', REPEAT('[1,1,', 100000)) SETTINGS input_format_json_compact_allow_variable_number_of_columns = 1; -- { serverError TOO_DEEP_RECURSION, INCORRECT_DATA }
|