Patch Changes
-
e36cec3: perf: share one Map key read between concurrent callers
The search page's filter panel, search bar and group-by each load the same Map
keys when the page opens. Each sent its own text index read, which on large
tables can use several GiB of memory. Concurrent requests for the same keys now
share one query. -
1a4c116: perf: load search filter values faster in exact mode by reading several keys on
one Map column with a singlegroupUniqArrayMap, and by querying plain columns
and each Map or JSON column separately so slow attribute maps don't hold up the
rest -
351f194: feat: allow up to 10,000 in the team "Filter Keys Fetch Limit" setting
The setting's input in Team settings stopped at 1,000 keys per column; it now
accepts up to 10,000. Map key discovery returns up to the setting's value per
Map column, and never fewer than 1,000. -
86acf27: perf: read only 20 median-sized parts for text index key and value lookups
Map key discovery and "all values" lookups on text indexes read the index
dictionary of every part in the time range, which is slow on tables with many
parts. They now read the 20 parts closest to the median size. Log and trace
sources can change the count with the new "Map key index parts" setting
(mapKeyIndexMaxParts), and which parts are read with "Map key index part size"
(mapKeyIndexPartSelection: median, smallest, or largest). "Load more" on a
single filter key still reads every part in the time range. -
2f61137: fix: return partial rows from
clickstack_searchinstead of timing outThe MCP search tool now scans newest-first over the same progressive time
windows as the app's search page, under a 25s budget. When time runs out it
returns the rows found so far with apartialblock (requested range, the range
fully covered, and the window that was cut off) and a hint for the next call,
instead of failing after 30s. The time-window helpers moved from the app to
@hyperdx/common-utils/core/searchWindows; the app's behavior is unchanged. -
64a55d5: fix: allow grouping gauge and sum metric charts by an expression over the time column
A table, pie or bar chart on a gauge or sum metric grouped by a time expression
such astoStartOfHour(TimeUnix)ortoDate(TimeUnix)failed with
Unknown identifier TimeUnix, because the bucketed CTE the outer query reads
did not carry the time column. When the group-by references it,TimeUnixnow
resolves to each metric bucket's start, so values are the same as the chart
without the time group-by. -
e8d1d9a: fix: return the actual earliest/latest time for min/max on a date or time column
minandmaxon a Date, DateTime, or DateTime64 column (for example
Timestamp) returned 0, because every aggregation cast its value to Float64
first. Tables, number tiles, and the MCPclickstack_tabletool now return the
timestamp itself. Line, bar, pie, and other charts, ratios, formulas, and number
tiles with several series keep the numeric cast. -
d99be76: fix: MCP
event_patterns,emerging_signalsand search denoise, and the CLI,
no longer split the same log line by its date. Before mining, the Drain miner
masks the date of a timestamp (weekday, day, month, year) to<DATE>, so dated
lines from different days, months or years get the same template instead of one
"new" and one "gone". Times and ids are not masked. Within one day lines group
as before, except that klog lines with different severity letters are no longer
merged. No mask changes a line's token count: theevent_patternsdrill-down
predicate matches<DATE>as one or more non-whitespace characters, also inside
a token (the newmasksoption of the pattern predicate builders, which only
the MCP drill-down sets), and search denoise masks bodies the same way before
matching. Masking instructions get an optionalperWordflag (default off, as
in drain3). The web app's Event patterns view uses its own drain3 config and is
unchanged. -
2cec94f: feat: let SQL query dashboard filters use an optional source
A SQL query filter can now pick a source on its connection, or a data source variable, and can do so on a connection variable too. With one, its SQL can use
$__sourceTableand$__filters, which applies the dashboard's filter selections for that source, the same way raw SQL tiles do. The external API and MCP read and write it assourceId. -
7afa31c: feat: Add a team-wide default (All or Exact) for the search filters "Show All Values" setting
-
f11b9f5: perf: read large-block Map text index values per key, most frequent first
"All values" lookups on Map key=value text indexes with large dictionary blocks
(2048 or more, e.g.text_index_dictionary_block_size = 8192, which the
collector's migration now sets on ClickHouse 26.6+)
now read each key separately, in parallel queries of at most 10 keys, and stop
after 20,000 tokens per key, so a key with a value per row (request IDs, UUIDs)
can't hold up the others. Values come fromtopKWeighted(limit)weighted by
each token's row count, so a capped list holds the most common values, most
common first. These reads no longer applymax_rows_to_read: the index is read
in sorted token order, so the cap left every key that sorts after a
high-cardinality key with no values.Indexes with smaller blocks, including ClickHouse's default of 512, keep the
previous query shape (one read for all of a query's keys, the alphabetically
first values, and themax_rows_to_readcap), now in parallel queries of at
most 10 keys, so the cap's cut-off affects at most 9 other keys. Every read loads
each part's sparse index, which is large with small blocks, so one read per key
would multiply that cost. The block size comes from the index definition, then
the table'stext_index_dictionary_block_size, then the server's.Text indexes on plain columns now return the most frequent values with
topKWeighted, in parallel queries of at most 10 columns, without the row cap.