Skip to content

feat: add --check flag for config and connectivity validation#29

Merged
peterborodatyy merged 3 commits into
masterfrom
feat-check-command
Mar 22, 2026
Merged

feat: add --check flag for config and connectivity validation#29
peterborodatyy merged 3 commits into
masterfrom
feat-check-command

Conversation

@peterborodatyy

Copy link
Copy Markdown
Contributor

Validates config, log file, ClickHouse connection, database/table existence, and column mapping against actual table schema. Exits with code 1 on failure.

Integration tests cover: all checks passing, missing column detection, and non-existent database detection.

peterborodatyy and others added 3 commits March 22, 2026 21:38
Validates config, log file, ClickHouse connection, database/table
existence, and column mapping against actual table schema. Exits
with code 1 on failure.

Integration tests cover: all checks passing, missing column detection,
and non-existent database detection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Columns mapped to enrichment sources (prefixed with _) are resolved
at runtime and don't exist in the ClickHouse table. The check now
skips them and reports the count separately.

Added integration test for enrichment columns passing validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ClickHouse rejects connections to non-existent databases at the auth
level, so connect() fails before the DB check runs. Changed test to
verify non-existent table detection instead, which exercises the full
check pipeline (connection OK → database OK → table FAIL).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@peterborodatyy
peterborodatyy merged commit 1751000 into master Mar 22, 2026
4 checks passed
@peterborodatyy
peterborodatyy deleted the feat-check-command branch March 22, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant