Collect addresses in stack traces

This commit is contained in:
Alexander Gololobov 2023-11-02 15:56:27 +01:00
parent 13adae0e42
commit c1aa49122f

View File

@ -453,10 +453,10 @@ LIMIT 10
SELECT_STACK_TRACES = r"""SELECT
'\n' || arrayStringConcat(
arrayMap(
x,
y -> concat(x, ': ', y),
x, y, z -> concat(x, ': ', y, ' @ ', z),
arrayMap(x -> addressToLine(x), trace),
arrayMap(x -> demangle(addressToSymbol(x)), trace)),
arrayMap(x -> demangle(addressToSymbol(x)), trace),
arrayMap(x -> '0x' || hex(x), trace)),
'\n') AS trace
FROM system.stack_trace
"""