Repository navigation
sql epic #3047: CI gates, ClickHouse and Postgres dialect work, import and migrate - #4412
Merged
Merged
Conversation
…from trust.json at base (#4324) identity.gates.<gate> takes quorum beside class. A run reads the entry at base and its quorum replaces the Op's own approval.quorum, so a change can't lower the quorum its own run needs. A gate whose entry sets none keeps the Op's. gate-decision's identityGatesAt returns the quorum too. A gate policy's principal.roles are the roles .chant/trust.json at base gives an approver a seal proves, as the quorum rules read them. Roles claimed with chant approve --role are recorded and trusted by nothing.
…from claimed roles (#4324)
…unner key from the plan job, check overdue Ops in ci run (#4328)
…sts them, SQLCH128 flags inline credentials (#4395)
…rum, and leave out everyone involved in a change (#4333)
…est under the unit budget to e2e (#4328)
# Conflicts: # packages/core/src/op/op-waves-run.ts
… lexicon's OtelTables (#4397)
… hook's hold on another gate there (#4323)
…me-file helpers op-waves.ts imports (#4322)
…in ClickHouseRebuildOp, StreamIngest composite (#4396)
…s and servers, and publications (#3911) Four tags join the Postgres dialect: statistics, foreignDataWrapper, foreignServer and publication. A wrapper, a server and a publication are the database's (no schema); statistics are a schema's, on one table. - Parser, entities, canonical form: statistics kinds as a set (all three is none), a publication's tables with column list and row filter, schemas and options at their defaults left out. - Classifier: SQLPG303 alters a wrapper, a server or a publication in place (ALTER FOREIGN DATA WRAPPER, ALTER SERVER, ALTER PUBLICATION SET/ADD/DROP); statistics, a server's type or wrapper and FOR ALL TABLES are dropped and created (SQLPG300), refused while something depends on them (SQLPG301). - Catalog reader: statistics through pg_get_statisticsobjdef, the rest from their catalog rows (column lists and schema members where the server has them). An option named like a credential is refused in a tag and left out of an import with a warning. - Coverage table: four rows declared; user mapping and subscription refused with the reason (they carry credentials). The completeness test now also checks that a declared row names a real entity type and every entity type has a row. - Unit tests: tags, classifier and statements, catalog reader, and declare, build, import, plan with no change. Live e2e written, not run. Part of #3911
The operator tag takes CREATE OPERATOR, identified by its name and operand types (NONE for a missing side). Its function and estimators compare by qualified name, COMMUTATOR and NEGATOR as schema.symbol (bare means the operator's own schema), HASHES and MERGES only when set. A change is a drop and a create (SQLPG300), refused while an operator class, index or view depends on it (SQLPG301). CREATE OPERATOR CLASS and FAMILY stay refused. Part of #3911
… readers can return outputs (#3935)
# Conflicts: # CHANGELOG.md # docs/src/content/docs/reference/boundary.mdx # packages/core/src/lexicon.ts # packages/core/src/op/local-executor.ts # packages/core/src/workspace/checks.ts # packages/core/src/workspace/kinds.ts # packages/core/src/workspace/workspace-kinds.schema.json
…ejo rewrite, terraform example and ops sample
… reason codes, and the regenerated plan-previews table
…lickHouseExporter has a generated config at the pin (#4397)
This was referenced Oct 24, 2026
sql: declare every Postgres and ClickHouse object kind, measured against the server's own list
#3911
Closed
Closed
Closed
Closed
Closed
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.
Lands the sql epic (#3047) work in one integration branch,
epic/3047-sql. Each issue was built on its own branch, merged here and checked here; every issue gets a closing comment with its commits after this merges.Issues
CI and gates (from #4287's gaps):
ci runci.lockslock and unlock jobs on GitHub and Forgejoci serve,ci.greenand a workspace check followci.branchesapprovals.quorum, and everyone involved is excludedinput.reviewfor policysql lexicon, ClickHouse:
replace, SQLCH225);StreamIngestcompositeclickhouseexporter,OtelTables, the OTEL129 check and a workspace linksql lexicon, Postgres and coverage:
Workspace, import and translation:
chant sql replaychant sql drizzlechant migrate --from sql/postgres --to sql/clickhouseChecked on this branch
npm run typecheck: clean.just testwithCHANT_UNIT_TEST_BUDGET_MS=0: 2031 files, 28246 tests passed, 0 failed. Under the default 5 s budget on a loaded machine, git-heavy workspace and lifecycle tests can exceed it; every such failure passes with the budget off.--validate, and the PostgresMigrationOp follow-ups.Follow-ups filed
#4404 (P1), #4405, #4406, #4407, #4409.