mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 04:42:37 +00:00
c6cbd981b6
addressToLineWithInlines() may lead to the following error: Code: 465. DB::Exception: Received from localhost:9000. DB::Exception: could not find abbreviation code: while executing 'FUNCTION addressToLineWithInlines(arrayJoin(trace) :: 1) -> addressToLineWithInlines(arrayJoin(trace)) Array(String) : 0'. (CANNOT_PARSE_DWARF) CI: https://s3.amazonaws.com/clickhouse-test-reports/40873/45fd2bcb218ace3231a026eb91d688f0093c6407/stateless_tests__release_.html Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
27 lines
1.2 KiB
SQL
27 lines
1.2 KiB
SQL
-- Tags: no-tsan, no-asan, no-ubsan, no-msan, no-debug, no-cpu-aarch64, disabled
|
|
-- Tag disabled: Parsing inlines may lead to "could not find abbreviation code" (FIXME)
|
|
|
|
SET allow_introspection_functions = 0;
|
|
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
|
|
lineWithInlines AS
|
|
(
|
|
SELECT DISTINCT addressToLineWithInlines(arrayJoin(trace)) AS lineWithInlines FROM system.trace_log WHERE query_id =
|
|
(
|
|
SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND log_comment='02161_test_case' ORDER BY event_time DESC LIMIT 1
|
|
)
|
|
)
|
|
SELECT 'has inlines:', or(max(length(lineWithInlines)) > 1, max(locate(lineWithInlines[1], ':')) = 0) FROM lineWithInlines SETTINGS short_circuit_function_evaluation='enable';
|
|
-- `max(length(lineWithInlines)) > 1` check there is any inlines.
|
|
-- `max(locate(lineWithInlines[1], ':')) = 0` check whether none could get a symbol.
|