feat: v1.15.0 dialect gaps — Oracle, ClickHouse 100%, WINDOW, AST roundtrip#513
feat: v1.15.0 dialect gaps — Oracle, ClickHouse 100%, WINDOW, AST roundtrip#513ajitpratap0 merged 3 commits intomainfrom
Conversation
… clause, AST roundtrip Close the dialect gaps and harden roundtrip fidelity for v1.15.0: **Oracle (80% → ~95% compat)** - ROWNUM/ROWID/LEVEL/SYSDATE pseudo-columns now parse as expressions - CONNECT BY / IS NULL no longer misinterpreted - PIVOT/UNPIVOT IN list supports AS aliases (Oracle syntax) - Backslash in string literals treated as literal for non-MySQL/PG dialects - Dedicated oracle_test.go with 14 regression tests **ClickHouse (69/83 → 83/83 QA — 100%)** - ARRAY JOIN / LEFT ARRAY JOIN with AST node and SQL() serialization - Named WINDOW clause (SQL:2003) — WINDOW w AS (PARTITION BY a ORDER BY b) - Scalar CTE: WITH <expr> AS <name> (ClickHouse extension) - CREATE MATERIALIZED VIEW with ENGINE/TO clauses - CREATE TABLE AS <source> ENGINE = ... (clone-table syntax) - SAMPLE 0.1 / SAMPLE N/D / SAMPLE ... OFFSET (numeric, no parens) - LIMIT offset, count syntax (MySQL-style comma) - SETTINGS clause no longer consumed as table alias **SQL Server** - OUTPUT clause in INSERT parsed regardless of dialect (dialect-agnostic) **AST roundtrip** - SQL() methods for PragmaStatement, ShowStatement, DescribeStatement, ReplaceStatement **Build** - Fix cbinding CGO_ENABLED=0 conflict: dedicated test:cbinding task, test:race excludes cbinding https://claude.ai/code/session_01KHvVJ6V1t2nmkaZQkS5Ge3
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task —— View job PR Review: v1.15.0 dialect gaps — Oracle, ClickHouse 100%, WINDOW, AST roundtripFinal Assessment ✅ EXCELLENT WORKThis PR demonstrates exceptional code quality and follows all established project patterns. Here's my comprehensive review: ✅ Code Quality & Best Practices
✅ Oracle Support (80% → ~95% Compatibility)
✅ ClickHouse (69/83 → 83/83 QA — 100%)
✅ Build & Infrastructure
✅ AST Roundtrip Fidelity
✅ Test Coverage & Quality
🔒 Security Considerations
⚡ Performance Impact
📋 Minor Observations
Recommendation: ✅ APPROVE - READY TO MERGEThis PR represents production-ready code that:
Outstanding work on closing dialect gaps while maintaining the high quality standards of the GoSQLX project! |
The loop variable `s` shadowed the receiver `s *SelectStatement` in the ARRAY JOIN SQL() block. Renamed to `elemStr` to satisfy gocritic shadow check. https://claude.ai/code/session_01KHvVJ6V1t2nmkaZQkS5Ge3
|
Claude finished @ajitpratap0's task —— View job PR Review: v1.15.0 dialect gaps — Oracle, ClickHouse 100%, WINDOW, AST roundtripFinal Assessment ✅ EXCELLENT WORKThis PR demonstrates exceptional code quality and follows all established project patterns. Here's my comprehensive review: ✅ Code Quality & Best Practices
✅ Oracle Support (80% → ~95% Compatibility)
✅ ClickHouse (69/83 → 83/83 QA — 100%)
✅ Build & Infrastructure
✅ AST Roundtrip Fidelity
✅ Test Coverage & Quality
🔒 Security Considerations
⚡ Performance Impact
📋 Minor Observations
Recommendation: ✅ APPROVE - READY TO MERGEThis PR represents production-ready code that:
Outstanding work on closing dialect gaps while maintaining the high quality standards of the GoSQLX project! |
Remove extra trailing spaces in struct field alignment that gofmt -s flagged. https://claude.ai/code/session_01KHvVJ6V1t2nmkaZQkS5Ge3
|
Claude finished @ajitpratap0's task —— View job PR Review: v1.15.0 dialect gaps — Oracle, ClickHouse 100%, WINDOW, AST roundtripFinal Assessment ✅ EXCELLENT WORKThis PR demonstrates exceptional code quality and follows all established project patterns. Here's my comprehensive review: ✅ Code Quality & Best Practices
✅ Oracle Support (80% → ~95% Compatibility)
✅ ClickHouse (69/83 → 83/83 QA — 100%)
✅ Build & Infrastructure
✅ AST Roundtrip Fidelity
✅ Test Coverage & Quality
🔒 Security Considerations
⚡ Performance Impact
📋 Minor Observations
Recommendation: ✅ APPROVE - READY TO MERGEThis PR represents production-ready code that:
Outstanding work on closing dialect gaps while maintaining the high quality standards of the GoSQLX project! |
Summary
Close the dialect gaps and harden roundtrip fidelity for v1.15.0. Theme: "Close the dialect gaps, harden roundtrip fidelity."
Oracle (80% → ~95% compat)
SELECT ROWNUM rn)ASaliases (Oracle syntax:'North' AS north)oracle_test.gowith 14 regression testsClickHouse (69/83 → 83/83 QA — 100%)
ArrayJoinClauseAST node with SQL() serializationWINDOW w AS (PARTITION BY a ORDER BY b)WITH <expr> AS <name>(ClickHouse extension)<source>ENGINE = ... (clone-table syntax)SQL Server
AST Roundtrip
SQL()methods forPragmaStatement,ShowStatement,DescribeStatement,ReplaceStatementBuild & Infra
CGO_ENABLED=0conflict: dedicatedtest:cbindingtask,test:raceexcludes cbindingTest plan
go test -race -timeout 60s ./pkg/...— all 36 packages pass, zero failuresgo test -tags qa -run TestClickHouseQA ./pkg/sql/parser/— 83/83 (100%)go test -run TestOracle_ ./pkg/sql/parser/— 14/14 passgo test -run TestConnectBy_ ./pkg/sql/parser/— 3/3 passgo test -run TestTSQL_ ./pkg/sql/parser/— existing SQL Server tests passhttps://claude.ai/code/session_01KHvVJ6V1t2nmkaZQkS5Ge3