fix: resolve all synq_clickhouse and synq_postgres corpus failures#54
Merged
lustefaniak merged 4 commits intomainfrom Mar 6, 2026
Merged
fix: resolve all synq_clickhouse and synq_postgres corpus failures#54lustefaniak merged 4 commits intomainfrom
lustefaniak merged 4 commits intomainfrom
Conversation
…P INDEX, and UPDATE in ALTER TABLE
…PROJECTION IF NOT EXISTS Also fixes: - MODIFY COLUMN without data type (REMOVE DEFAULT only) - ALTER TABLE UPDATE for PostgreSQL dialect - FOREIGN KEY REFERENCES without column list in table constraints
…ADD COLUMN without type Also fixes: - ADD IF NOT EXISTS PARTITION regression from previous commit - PostgreSQL DO $$ ... $$ anonymous code blocks - DROP COLUMN with missing column name (broken SQL tolerance) - Column definition without data type (Unspecified fallback) - PostgreSQL jsonb ? (has key) binary operator
Corpus Parsing ReportTotal: 104246 passed, 840 failed (99.2% pass rate) Changes✅ 2 improvement(s) (now passing) By Dialect
✅ Improvements (2)➕ New Tests (2106) |
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.
Summary
synq_clickhouse(39) andsynq_postgres(13) categoriesClickHouse additions
ALTER TABLE ... MODIFY COLUMN(with optional data type andREMOVE DEFAULT)ALTER TABLE ... MATERIALIZE COLUMN/PROJECTIONALTER TABLE ... DROP INDEX [IF EXISTS]ALTER TABLE ... UPDATE ... WHERE(lightweight mutations)EXCHANGE TABLES t1 AND t2statementCREATE TABLE t1 AS t2 ENGINE = ...syntaxADD PROJECTION IF NOT EXISTS(IF NOT EXISTS after PROJECTION keyword)PostgreSQL additions
DO $$ ... $$anonymous code blocksALTER TABLE ... UPDATE(ClickHouse syntax tolerance)?(has key) binary operatorFOREIGN KEY REFERENCESwithout column list in table constraintsDROP COLUMN/ADD COLUMNtolerance for missing identifiers/typesKeywords added
EXCHANGE,MATERIALIZE,MODIFY,REMOVE