Querying in ClickHouse CloudThe data in this system table is held locally on each node in ClickHouse Cloud. Obtaining a complete view of all data, therefore, requires the
clusterAllReplicas function. See here for further details.Description
Contains stack traces of all server threads. Allows developers to introspect the server state. To analyze stack frames, use theaddressToLine, addressToLineWithInlines, addressToSymbol and demangle introspection functions.
Columns
thread_name(String) — The name of the thread.thread_id(UInt64) — The thread identifierquery_id(String) — The ID of the query this thread belongs to.trace(Array(UInt64)) — The stacktrace of this thread. Basically just an array of addresses.untracked_memory(Int64) — Per-thread atomic-less counter of memory allocations not yet propagated to the parent MemoryTracker. May be negative if more was freed than allocated since the last flush.
Example
Enabling introspection functions:See Also
- Introspection Functions — Which introspection functions are available and how to use them.
- system.trace_log — Contains stack traces collected by the sampling query profiler.
- arrayMap) — Description and usage example of the
arrayMapfunction. - arrayFilter — Description and usage example of the
arrayFilterfunction.