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

supabase / etl / 35585255113
79%

Build:
DEFAULT BRANCH: main
Ran 21 Sep 2026 10:03AM UTC
Jobs 1
Files 302
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

21 Sep 2026 09:47AM UTC coverage: 78.696% (+0.01%) from 78.686%
35585255113

push

github

web-flow
clickhouse: escape column default literals for ClickHouse (#1051)

* Test ClickHouse defaults keep backslashes from source

PostgreSQL string literals treat a backslash as an ordinary character.
ClickHouse treats it as an escape. The ClickHouse renderer forwards the
PostgreSQL literal verbatim, so a default such as 'C:\temp' becomes
"C:<tab>emp" and a default ending in a backslash swallows the closing
quote and fails the whole CREATE TABLE.

Pin the expected ClickHouse quoting in a unit test and prove the value
end to end: create the table through the destination, let ClickHouse
fill the omitted columns from its stored defaults, and compare with the
characters PostgreSQL holds. Both tests fail before the fix.

* Re-quote ClickHouse column defaults in its dialect

The ClickHouse renderer forwarded parser-validated PostgreSQL string
literals verbatim into CREATE TABLE and ALTER TABLE. PostgreSQL treats a
backslash inside a literal as an ordinary character; ClickHouse treats
it as an escape. A default such as 'C:\temp' therefore reached
ClickHouse as "C:<tab>emp", a JSON default with escaped backslashes
became invalid JSON, and a default ending in a backslash swallowed the
closing quote and failed the statement.

Decode each literal with unquote_postgres_string_literal, which exists
for this purpose and is already used by the Snowflake destination, and
re-quote it with a new quote_string_literal that shares the identifier
quoter's escape table. Every literal variant goes through the same
helper, including the date and timestamp literals wrapped in conversion
functions.

73 of 74 new or added lines in 2 files covered. (98.65%)

9 existing lines in 3 files now uncovered.

59279 of 75327 relevant lines covered (78.7%)

7420.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.68
1.05% crates/etl-destinations/src/clickhouse/schema.rs

Coverage Regressions

Lines Coverage ∆ File
5
87.64
-0.24% crates/etl/src/replication/apply/mod.rs
3
89.81
-0.8% crates/etl/src/runtime/table_sync/worker.rs
1
93.02
7.31% crates/etl-destinations/src/clickhouse/sql.rs
Jobs
ID Job ID Ran Files Coverage
1 35585255113.1 21 Sep 2026 10:03AM UTC 302
78.7
GitHub Action Run
Source Files on build 35585255113
  • Tree
  • List 302
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35585255113
  • df28ad8a on github
  • Prev Build on main (#35578284984)
  • Next Build on main (#35594246603)
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