+ {(
+ [
+ ['Host name', hostname],
+ ['Client host name', client_hostname],
+ ['Client name', client_name],
+ ['Client revision', client_revision],
+ [
+ 'Initial user',
+
+ {initial_user}
+
+ ,
+ ],
+ [
+ 'Initial query id',
+
+ {initial_query_id}
+
+ ,
+ ],
+ ['Initial address', initial_address],
+ ['Initial port', initial_port],
+ ['Initial query start time', initial_query_start_time],
+ ['Databases', bindingDatabaseLink(databases)],
+ ['Tables', bindingTableLink(tables)],
+ ['Columns', JSON.stringify(columns, null, 2)],
+ ['Partitions', JSON.stringify(partitions, null, 2)],
+ ['Projections', JSON.stringify(projections, null, 2)],
+ ['Views', JSON.stringify(views, null, 2)],
+ ['Exception code', exception_code],
+ ['Exception', exception],
+ ['Stack trace', stack_trace],
+ ['HTTP method', http_method],
+ ['HTTP user agent', http_user_agent],
+ ['HTTP referer', http_referer],
+ ['Forwarded for', forwarded_for],
+ ['Quota key', quota_key],
+ ['Distributed depth', distributed_depth],
+ ['Revision', revision],
+ ['Log Comment', log_comment],
+ [
+ {
+ key: 'Profile events',
+ link: 'https://clickhouse.com/docs/en/operations/system-tables/metrics',
+ },
+ JSON.stringify(ProfileEvents, null, 2),
+ ],
+ [
+ {
+ key: 'Settings',
+ link: 'https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings',
+ },
+ JSON.stringify(Settings, null, 2),
+ ],
+ [
+ 'Used aggregate functions',
+ bindingReference(used_aggregate_functions),
+ ],
+ [
+ 'Used aggregate function combinators',
+ JSON.stringify(used_aggregate_function_combinators, null, 2),
+ ],
+ [
+ {
+ key: 'Used database engines',
+ link: 'https://clickhouse.com/docs/en/chdb/data-formats',
+ },
+ JSON.stringify(used_database_engines, null, 2),
+ ],
+ [
+ 'Used data type families',
+ JSON.stringify(used_data_type_families, null, 2),
+ ],
+ ['Used dictionaries', JSON.stringify(used_dictionaries, null, 2)],
+ [
+ {
+ key: 'Used formats',
+ link: 'https://clickhouse.com/docs/en/chdb/data-formats',
+ },
+ JSON.stringify(used_formats, null, 2),
+ ],
+ ['Used functions', bindingReference(used_functions)],
+ ['Used storages', JSON.stringify(used_storages, null, 2)],
+ [
+ 'Used table functions',
+ JSON.stringify(used_table_functions, null, 2),
+ ],
+ ['Used row policies', JSON.stringify(used_row_policies, null, 2)],
+ ['Used privileges', JSON.stringify(used_privileges, null, 2)],
+ [
+ 'Missing privileges',
+ JSON.stringify(missing_privileges, null, 2),
+ ],
+ ] as Array<
+ | [string, string | React.ReactNode[]]
+ | [{ key: string; link: string }, string | React.ReactNode[]]
+ >
+ )
+ .filter(
+ ([_, value]) =>
+ (Array.isArray(value) && value.length) ||
+ (!!value && value !== '[]' && value !== '{}')
+ )
+ .map(([key, value]) => (
+
+
+
+ {typeof key === 'string' ? (
+ key
+ ) : (
+
+ {key.key}
+
+ )}
+
+ {typeof value === 'string' ? (
+
+ {value}
+
+ ) : (
+
+ {value}
+
+ )}
+
+
+ ))}
+