ClickHouse/tests/queries/0_stateless/02353_simdjson_buffer_overflow.sql
2022-07-07 21:13:24 +03:00

8 lines
422 B
SQL

-- Tags: no-fasttest, no-msan
-- Tag: no-msan: fuzzer can make this query very memory hungry, and under MSan, the MemoryTracker cannot account for the additional memory used by sanitizer, and OOM happens.
SET max_execution_time = 3;
SET timeout_overflow_mode = 'break';
SELECT count() FROM system.numbers_mt WHERE NOT ignore(JSONExtract('{' || repeat('"a":"b",', rand() % 10) || '"c":"d"}', 'a', 'String')) FORMAT Null;