The ClickHouse edge answers in the formats HyperDX asks for: JSONCompactEachRowWithNamesAndTypes, TabSeparatedRaw, ISO timestamps, and count() by its name (T-493) - #351
Merged
Conversation
chasers
added this pull request to stack #354
September 20, 2026 00:57
…actEachRowWithNamesAndTypes, TabSeparatedRaw, ISO timestamps, and count() by its name (T-493) HyperDX streams its results table from JSONCompactEachRowWithNamesAndTypes, sends date_time_output_format=iso on every query and feeds the values to new Date(), and reads its total from a column named exactly count(). - Format takes the JSONCompactEachRow family (plain, WithNames, WithNamesAndTypes) and TabSeparatedRaw, which writes a value unescaped. - Format.encode/4 takes opts: elapsed_ms: and date_time: :iso, which writes a timestamp as 2026-09-19T10:11:29.500000Z in the text formats. RowBinary carries the number either way. Query reads the setting from the URL. - An unaliased count() or count(*) answers as count(), not the engine's count_star(). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
chasers
force-pushed
the
t-493-clickhouse-hyperdx-formats
branch
from
September 20, 2026 03:11
6f6f9de to
afe30cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR: The ClickHouse edge answers in the formats HyperDX asks for, writes ISO timestamps on request, and names
count()as ClickHouse does.Tracker: T-493. Plan PL-66. Stacked on #350 (T-502).
Why
JSONCompactEachRowWithNamesAndTypes.date_time_output_format=isoon every query and feeds the values tonew Date().count(). DuckDB names itcount_star().What changed
JSONCompactEachRow,...WithNames,...WithNamesAndTypes,TabSeparatedRaw.Format.encode/4takesopts:elapsed_ms:anddate_time: :iso.count()orcount(*)answers ascount().How it works
2026-09-19 10:11:29.500000date_time_output_format=iso2026-09-19T10:11:29.500000ZWatch out
Checks
mix precommitmix ci🤖 Generated with Claude Code