• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / etl / 43884052058
79%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 02:23PM UTC
Jobs 1
Files 267
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Nov 2026 02:16PM UTC coverage: 79.036% (+0.05%) from 78.985%
43884052058

push

github

web-flow
perf(clickhouse): encode cells straight to RowBinary (#1253)

* perf(clickhouse): encode cells straight to RowBinary

Rows went through three forms: `Cell`, then a `Vec<ClickHouseValue>`
that allocated a `String` for every numeric, time, JSON and bytea cell
and a `Vec` per array, then RowBinary bytes. The CDC trailer pushed
three more values per row, one of them `operation.to_string()`.

Encode each `Cell` straight into the row buffer instead. Text-formatted
values go through one scratch string reused across the statement, bytea
hex is written directly, and the CDC columns are a small `CdcColumns`
value encoded at the end of the row. `insert_rows` takes
`ClickHouseRow`s.

Infinite dates and timestamps are still rejected while the batch is
prepared, before any INSERT is sent: `ensure_finite_temporals` runs
where the old conversion did.

Measured with the new `clickhouse_row_encode` hot_paths scenario
(12-column decoded copy rows plus MergeTree trailer, 20,000 rows,
--repeat 31, macOS instructions per row):

  before  12,963 instr  10.00 allocs  1,048 bytes  spread 0.32%
  after    7,568 instr   0.00 allocs      0 bytes  spread 1.83%
  delta   -41.6%

Checksums match (dae8f5458bfefe87), so the bytes sent are unchanged.
Unit tests ported to the new API; the RowBinary property test now also
checks the CDC trailer for both engines. ClickHouse integration tests
against a local server: 131 passed.

Rules: ALLOC-1 (no per-value heap objects on the hot path), ALLOC-4
(reuse scratch buffers), PRIN-4 (measure before and after).

* test(clickhouse): check the LSN on the wire

Test the full-range MergeTree LSN through encode_row's bytes instead of
the private cdc_columns helper, so the test survives internal rewrites
that keep the wire format.

* style(clickhouse): import Uuid in the encoder

Name the type by its short name, as the repository's import rule asks.

62245 of 78755 relevant lines covered (79.04%)

55195.34 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
91.37
1.26% crates/etl-destinations/src/ducklake/encoding.rs
1
90.39
0.16% crates/etl/src/replication/apply/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 43884052058.1 16 Nov 2026 02:23PM UTC 267
79.04
GitHub Action Run
Source Files on build 43884052058
  • Tree
  • List 267
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43884052058
  • c6c6490a on github
  • Prev Build on main (#43876282423)
  • Next Build on main (#44050441339)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc