mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
531e3b13ce
Because of failed rebase/push this part of the patch was lost, so resending separatelly (sigh). Follow-up for: #39177 (cc @yakov-olkhovskiy) Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
19 lines
638 B
Plaintext
19 lines
638 B
Plaintext
-- { echo }
|
|
SELECT count() > 0 FROM system.stack_trace WHERE query_id != '';
|
|
1
|
|
-- opimization for not reading /proc/self/task/{}/comm and avoid sending signal
|
|
SELECT countIf(thread_id > 0) > 0 FROM system.stack_trace;
|
|
1
|
|
-- optimization for trace
|
|
SELECT length(trace) > 0 FROM system.stack_trace LIMIT 1;
|
|
1
|
|
-- optimization for query_id
|
|
SELECT length(query_id) > 0 FROM system.stack_trace WHERE query_id != '' LIMIT 1;
|
|
1
|
|
-- optimization for thread_name
|
|
SELECT length(thread_name) > 0 FROM system.stack_trace WHERE thread_name != '' LIMIT 1;
|
|
1
|
|
-- enough rows (optimizations works "correctly")
|
|
SELECT count() > 100 FROM system.stack_trace;
|
|
1
|