@@ -913,36 +913,89 @@ We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guid
913913
914914## Roadmap
915915
916- ### Phase 1: Core SQL Enhancements (Q1 2025) - v1.1.0 ✅
916+ <div align =" center " >
917+
918+ | Phase | Version | Status | Highlights |
919+ | -------| ---------| --------| ------------|
920+ | ** Phase 1** | v1.1.0 | ✅ Complete | JOIN Support |
921+ | ** Phase 2** | v1.2.0 | ✅ Complete | CTEs & Set Operations |
922+ | ** Phase 2.5** | v1.3.0-v1.4.0 | ✅ Complete | Window Functions, MERGE, Grouping Sets |
923+ | ** Phase 3** | v1.5.0-v1.6.0 | ✅ Complete | PostgreSQL Extensions, LSP, Linter |
924+ | ** Phase 4** | v1.7.0 | 🚧 In Progress | MySQL & SQL Server Dialects |
925+ | ** Phase 5** | v2.0.0 | 📋 Planned | Query Intelligence & Optimization |
926+ | ** Phase 6** | v2.1.0 | 📋 Planned | Schema Awareness & Validation |
927+
928+ </div >
929+
930+ ### Phase 1: Core SQL Enhancements - v1.1.0 ✅
917931- ✅ ** Complete JOIN support** (INNER/LEFT/RIGHT/FULL OUTER/CROSS/NATURAL)
918- - ✅ ** Proper join tree logic** with left-associative relationships
919- - ✅ ** USING clause parsing** ( single-column, multi-column planned for Phase 2)
932+ - ✅ ** Proper join tree logic** with left-associative relationships
933+ - ✅ ** USING clause parsing** for single and multi-column joins
920934- ✅ ** Enhanced error handling** with contextual JOIN error messages
921- - ✅ ** Comprehensive test coverage** (15+ JOIN scenarios including error cases)
922- - 🏗️ ** CTE foundation laid** (AST structures, tokens, parser integration points)
935+ - ✅ ** Comprehensive test coverage** (15+ JOIN scenarios)
923936
924- ### Phase 2: CTE & Advanced Features (Q1 2025) - v1.2.0 ✅
937+ ### Phase 2: CTE & Set Operations - v1.2.0 ✅
925938- ✅ ** Common Table Expressions (CTEs)** with RECURSIVE support
926939- ✅ ** Set operations** (UNION/EXCEPT/INTERSECT with ALL modifier)
927940- ✅ ** Left-associative set operation parsing**
928941- ✅ ** CTE column specifications** and multiple CTE definitions
929- - ✅ ** Integration of CTEs with set operations**
930- - ✅ ** Enhanced error handling** with contextual messages
931942- ✅ ** ~ 70% SQL-92 compliance** achieved
932943
933- ### Phase 3: Dialect Specialization (Q1 2025) - v2.0.0
934- - 📋 PostgreSQL arrays, JSONB, custom types
935- - 📋 MySQL-specific syntax and functions
936- - 📋 SQL Server T-SQL extensions
937- - 📋 Multi-dialect parser with auto-detection
938-
939- ### Phase 4: Intelligence Layer (Q2 2025) - v2.1.0
940- - 📋 Query optimization suggestions
941- - 📋 Security vulnerability detection
942- - 📋 Performance analysis and hints
943- - 📋 Schema validation
944-
945- See [ ARCHITECTURE.md] ( docs/ARCHITECTURE.md ) for detailed system design
944+ ### Phase 2.5: Window Functions & Advanced SQL - v1.3.0-v1.4.0 ✅
945+ - ✅ ** Window Functions** - Complete SQL-99 support (ROW_NUMBER, RANK, DENSE_RANK, NTILE, LAG, LEAD, FIRST_VALUE, LAST_VALUE)
946+ - ✅ ** Window Frames** - ROWS/RANGE with PRECEDING/FOLLOWING/CURRENT ROW
947+ - ✅ ** MERGE Statements** - SQL:2003 F312 with WHEN MATCHED/NOT MATCHED clauses
948+ - ✅ ** GROUPING SETS, ROLLUP, CUBE** - SQL-99 T431 advanced grouping
949+ - ✅ ** Materialized Views** - CREATE, REFRESH, DROP support
950+ - ✅ ** Expression Operators** - BETWEEN, IN, LIKE, IS NULL, NULLS FIRST/LAST
951+ - ✅ ** ~ 75% SQL-99 compliance** achieved
952+
953+ ### Phase 3: PostgreSQL Extensions & Developer Tools - v1.5.0-v1.6.0 ✅
954+ - ✅ ** LATERAL JOIN** - Correlated subqueries in FROM clause
955+ - ✅ ** JSON/JSONB Operators** - All 10 operators (` -> ` , ` ->> ` , ` #> ` , ` #>> ` , ` @> ` , ` <@ ` , ` ? ` , ` ?| ` , ` ?& ` , ` #- ` )
956+ - ✅ ** DISTINCT ON** - PostgreSQL-specific row selection
957+ - ✅ ** FILTER Clause** - Conditional aggregation (SQL:2003 T612)
958+ - ✅ ** Aggregate ORDER BY** - ORDER BY inside STRING_AGG, ARRAY_AGG, etc.
959+ - ✅ ** RETURNING Clause** - Return modified rows from INSERT/UPDATE/DELETE
960+ - ✅ ** LSP Server** - Full Language Server Protocol with diagnostics, completion, hover, formatting
961+ - ✅ ** Linter Engine** - 10 built-in rules (L001-L010) with auto-fix
962+ - ✅ ** Security Scanner** - SQL injection detection with severity classification
963+ - ✅ ** Structured Errors** - Error codes E1001-E3004 with position tracking
964+ - ✅ ** CLI Enhancements** - Pipeline support, stdin detection, cross-platform
965+ - ✅ ** ~ 80-85% SQL-99 compliance** achieved
966+
967+ ### Phase 4: MySQL & SQL Server Dialects - v1.7.0 🚧
968+ - 🚧 ** MySQL Extensions** - AUTO_INCREMENT, REPLACE INTO, ON DUPLICATE KEY
969+ - 📋 ** MySQL Functions** - DATE_FORMAT, IFNULL, GROUP_CONCAT specifics
970+ - 📋 ** SQL Server T-SQL** - TOP, OFFSET-FETCH, OUTPUT clause
971+ - 📋 ** SQL Server Functions** - ISNULL, CONVERT, DATEPART specifics
972+ - 📋 ** Dialect Auto-Detection** - Automatic syntax detection from queries
973+ - 📋 ** Cross-Dialect Translation** - Convert between dialect syntaxes
974+
975+ ### Phase 5: Query Intelligence & Optimization - v2.0.0 📋
976+ - 📋 ** Query Cost Estimation** - Complexity analysis and scoring
977+ - 📋 ** Index Recommendations** - Suggest indexes based on query patterns
978+ - 📋 ** Join Order Optimization** - Recommend optimal join sequences
979+ - 📋 ** Subquery Optimization** - Detect and suggest subquery improvements
980+ - 📋 ** N+1 Query Detection** - Identify inefficient query patterns
981+ - 📋 ** Performance Hints** - Actionable optimization suggestions
982+
983+ ### Phase 6: Schema Awareness & Validation - v2.1.0 📋
984+ - 📋 ** Schema Definition Parsing** - Full DDL understanding
985+ - 📋 ** Type Checking** - Validate column types in expressions
986+ - 📋 ** Foreign Key Validation** - Verify relationship integrity
987+ - 📋 ** Constraint Checking** - NOT NULL, UNIQUE, CHECK validation
988+ - 📋 ** Schema Diff** - Compare and generate migration scripts
989+ - 📋 ** Entity-Relationship Extraction** - Generate ER diagrams from DDL
990+
991+ ### Future Considerations 🔮
992+ - 📋 ** Stored Procedures** - CREATE PROCEDURE/FUNCTION parsing
993+ - 📋 ** Triggers** - CREATE TRIGGER support
994+ - 📋 ** PL/pgSQL** - PostgreSQL procedural language
995+ - 📋 ** Query Rewriting** - Automatic query transformation
996+ - 📋 ** WASM Support** - Browser-based SQL parsing
997+
998+ See [ ARCHITECTURE.md] ( docs/ARCHITECTURE.md ) for detailed system design and [ CHANGELOG.md] ( CHANGELOG.md ) for version history
946999
9471000## Community & Support
9481001
0 commit comments