2022-03-02 14:18:24 +00:00
|
|
|
-- Tags: no-tsan, no-asan, no-ubsan, no-msan, no-debug, no-cpu-aarch64
|
2022-01-25 17:33:44 +00:00
|
|
|
|
2022-03-21 12:32:18 +00:00
|
|
|
SET allow_introspection_functions = 0;
|
2022-01-25 17:33:44 +00:00
|
|
|
SELECT addressToLineWithInlines(1); -- { serverError 446 }
|
|
|
|
|
|
|
|
SET allow_introspection_functions = 1;
|
|
|
|
SET query_profiler_real_time_period_ns = 0;
|
|
|
|
SET query_profiler_cpu_time_period_ns = 1000000;
|
|
|
|
SET log_queries = 1;
|
|
|
|
SELECT count() FROM numbers_mt(10000000000) SETTINGS log_comment='02161_test_case';
|
|
|
|
SET log_queries = 0;
|
|
|
|
SET query_profiler_cpu_time_period_ns = 0;
|
|
|
|
SYSTEM FLUSH LOGS;
|
|
|
|
|
|
|
|
WITH
|
2022-01-26 12:02:39 +00:00
|
|
|
lineWithInlines AS
|
2022-01-25 17:33:44 +00:00
|
|
|
(
|
2022-01-26 12:02:39 +00:00
|
|
|
SELECT DISTINCT addressToLineWithInlines(arrayJoin(trace)) AS lineWithInlines FROM system.trace_log WHERE query_id =
|
2022-01-25 17:33:44 +00:00
|
|
|
(
|
|
|
|
SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND log_comment='02161_test_case' ORDER BY event_time DESC LIMIT 1
|
|
|
|
)
|
|
|
|
)
|
2022-02-08 00:58:01 +00:00
|
|
|
SELECT 'has inlines:', or(max(length(lineWithInlines)) > 1, max(locate(lineWithInlines[1], ':')) = 0) FROM lineWithInlines SETTINGS short_circuit_function_evaluation='enable';
|
2022-01-26 12:02:39 +00:00
|
|
|
-- `max(length(lineWithInlines)) > 1` check there is any inlines.
|
2022-02-08 00:58:01 +00:00
|
|
|
-- `max(locate(lineWithInlines[1], ':')) = 0` check whether none could get a symbol.
|