@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Added
11+ - ** GROUPING SETS, ROLLUP, CUBE** (SQL-99 T431): Complete grouping operations support for advanced aggregations
12+ - ** MERGE Statements** (SQL:2003 F312): Full MERGE support with WHEN MATCHED/NOT MATCHED clauses
13+ - ** Materialized Views** : CREATE, DROP, REFRESH MATERIALIZED VIEW support
14+ - ** Table Partitioning** : PARTITION BY RANGE, LIST, HASH support
15+ - ** SQL Injection Detection** : Built-in security scanner (` pkg/sql/security ` ) for pattern detection
16+ - ** Expression Operators** : BETWEEN, IN, LIKE, IS NULL with full expression support
17+ - ** Subquery Support** : Scalar, table, correlated, EXISTS subqueries
18+ - ** NULLS FIRST/LAST** : ORDER BY null ordering (SQL-99 F851)
19+
1020## [ 1.5.1] - 2025-11-15 - Phases 2-3 Test Coverage Completion
1121
1222### 🎯 Phase 3 Complete: Token and Tokenizer Coverage Enhancement
@@ -452,120 +462,6 @@ This substantial test coverage increase provides strong confidence in the AST pa
452462- ✅ Comprehensive test coverage for all new features
453463- ✅ Zero performance regression while adding major features
454464
455- ## [ 1.2.0] - 2025-09-04 - Phase 2: Advanced SQL Features
456-
457- ### ✅ Major Features Implemented
458- - ** Complete Common Table Expression (CTE) support** : Simple and recursive CTEs with full SQL-92 compliance
459- - ** Set operations** : UNION, UNION ALL, EXCEPT, INTERSECT with proper left-associative parsing
460- - ** Multiple CTE definitions** : Comma-separated CTEs in single query with column specifications
461- - ** CTE Integration** : Full compatibility with all statement types (SELECT, INSERT, UPDATE, DELETE)
462- - ** Enhanced parser architecture** : New parsing functions for WITH statements and set operations
463-
464- ### 🚀 Performance & Quality
465- - ** 946K+ sustained operations/second** (30s load testing) - production grade performance
466- - ** 1.25M+ operations/second** peak throughput with concurrent processing
467- - ** <1μs latency** for complex queries with CTEs and set operations
468- - ** Zero performance regression** from Phase 1 - all existing functionality maintained
469- - ** Race-free implementation** - comprehensive concurrent testing validates thread safety
470- - ** Memory efficient** - object pooling preserved with 60-80% memory reduction
471-
472- ### 🎯 SQL Standards Compliance
473- - ** ~ 70% SQL-92 compliance** achieved (up from ~ 40% in Phase 1)
474- - ** Advanced SQL features** : WITH clause, RECURSIVE support, set operations
475- - ** Complex query compositions** : CTEs combined with set operations in single queries
476- - ** Proper operator precedence** : Left-associative parsing for chained set operations
477-
478- ### 🔧 Technical Implementation
479- - ** parseWithStatement()** - Complete WITH clause parsing with recursive support
480- - ** parseSelectWithSetOperations()** - Set operations parsing with proper precedence
481- - ** parseCommonTableExpr()** - Individual CTE parsing with column specifications
482- - ** parseMainStatementAfterWith()** - Post-CTE statement routing with full integration
483- - ** Enhanced AST structures** - Complete integration with existing AST framework
484-
485- ### 📊 Comprehensive Testing
486- - ** 24+ test functions** total (9 new Phase 2 tests added)
487- - ** 4 comprehensive CTE tests** : Simple CTE, Recursive CTE, Multiple CTEs, Column specs
488- - ** 5 comprehensive set operation tests** : All operations, chaining, CTE combinations
489- - ** 100% test pass rate** with race detection enabled
490- - ** Extensive error case coverage** with contextual error messages
491-
492- ### 📚 Documentation Updates
493- - ** Enhanced Go package documentation** with Phase 2 examples and API references
494- - ** Comprehensive README updates** with CTE and set operations examples
495- - ** Updated performance benchmarks** reflecting Phase 2 capabilities
496- - ** Complete API documentation** for all new parsing functions
497-
498- ### 🔄 Backward Compatibility
499- - ** 100% backward compatible** - all existing functionality preserved
500- - ** API stability** - no breaking changes to public interfaces
501- - ** Legacy test compatibility** - all Phase 1 and prior tests continue passing
502- - ** Performance maintained** - no degradation in existing query parsing performance
503-
504- ### Goals Achieved
505- - ✅ ~ 70% SQL-92 compliance milestone reached
506- - ✅ Production-grade CTE implementation with recursive support
507- - ✅ Complete set operations support with proper precedence
508- - ✅ Enhanced error handling with contextual messages
509- - ✅ Comprehensive test coverage for all new features
510- - ✅ Zero performance regression while adding major features
511-
512- ## [ 1.2.0] - 2025-09-04 - Phase 2: Advanced SQL Features
513-
514- ### ✅ Major Features Implemented
515- - ** Complete Common Table Expression (CTE) support** : Simple and recursive CTEs with full SQL-92 compliance
516- - ** Set operations** : UNION, UNION ALL, EXCEPT, INTERSECT with proper left-associative parsing
517- - ** Multiple CTE definitions** : Comma-separated CTEs in single query with column specifications
518- - ** CTE Integration** : Full compatibility with all statement types (SELECT, INSERT, UPDATE, DELETE)
519- - ** Enhanced parser architecture** : New parsing functions for WITH statements and set operations
520-
521- ### 🚀 Performance & Quality
522- - ** 946K+ sustained operations/second** (30s load testing) - production grade performance
523- - ** 1.25M+ operations/second** peak throughput with concurrent processing
524- - ** <1μs latency** for complex queries with CTEs and set operations
525- - ** Zero performance regression** from Phase 1 - all existing functionality maintained
526- - ** Race-free implementation** - comprehensive concurrent testing validates thread safety
527- - ** Memory efficient** - object pooling preserved with 60-80% memory reduction
528-
529- ### 🎯 SQL Standards Compliance
530- - ** ~ 70% SQL-92 compliance** achieved (up from ~ 40% in Phase 1)
531- - ** Advanced SQL features** : WITH clause, RECURSIVE support, set operations
532- - ** Complex query compositions** : CTEs combined with set operations in single queries
533- - ** Proper operator precedence** : Left-associative parsing for chained set operations
534-
535- ### 🔧 Technical Implementation
536- - ** parseWithStatement()** - Complete WITH clause parsing with recursive support
537- - ** parseSelectWithSetOperations()** - Set operations parsing with proper precedence
538- - ** parseCommonTableExpr()** - Individual CTE parsing with column specifications
539- - ** parseMainStatementAfterWith()** - Post-CTE statement routing with full integration
540- - ** Enhanced AST structures** - Complete integration with existing AST framework
541-
542- ### 📊 Comprehensive Testing
543- - ** 24+ test functions** total (9 new Phase 2 tests added)
544- - ** 4 comprehensive CTE tests** : Simple CTE, Recursive CTE, Multiple CTEs, Column specs
545- - ** 5 comprehensive set operation tests** : All operations, chaining, CTE combinations
546- - ** 100% test pass rate** with race detection enabled
547- - ** Extensive error case coverage** with contextual error messages
548-
549- ### 📚 Documentation Updates
550- - ** Enhanced Go package documentation** with Phase 2 examples and API references
551- - ** Comprehensive README updates** with CTE and set operations examples
552- - ** Updated performance benchmarks** reflecting Phase 2 capabilities
553- - ** Complete API documentation** for all new parsing functions
554-
555- ### 🔄 Backward Compatibility
556- - ** 100% backward compatible** - all existing functionality preserved
557- - ** API stability** - no breaking changes to public interfaces
558- - ** Legacy test compatibility** - all Phase 1 and prior tests continue passing
559- - ** Performance maintained** - no degradation in existing query parsing performance
560-
561- ### Goals Achieved
562- - ✅ ~ 70% SQL-92 compliance milestone reached
563- - ✅ Production-grade CTE implementation with recursive support
564- - ✅ Complete set operations support with proper precedence
565- - ✅ Enhanced error handling with contextual messages
566- - ✅ Comprehensive test coverage for all new features
567- - ✅ Zero performance regression while adding major features
568-
569465## [ 1.1.0] - 2025-01-03 - Phase 1: Core SQL Enhancements
570466
571467### ✅ Implemented Features
@@ -586,36 +482,6 @@ This substantial test coverage increase provides strong confidence in the AST pa
586482- Unified AST structure
587483- Consistent error system with context and hints
588484
589- ## [ 1.2.0] - (Planned Q4 2024) - Phase 2: Advanced Features
590-
591- ### Planned Features
592- - Window functions (OVER, PARTITION BY, RANK, LAG/LEAD)
593- - Transaction control statements (BEGIN/COMMIT/ROLLBACK)
594- - Views and materialized views support
595- - Stored procedure parsing (basic)
596- - Streaming parser API for large files
597- - AST transformation framework
598-
599- ### Goals
600- - Achieve 85% SQL-99 compliance
601- - Streaming support for queries >10MB
602- - Query transformation and optimization capabilities
603-
604- ## [ 2.0.0] - (Planned Q1 2025) - Phase 3: Dialect Specialization
605-
606- ### Planned Features
607- - PostgreSQL-specific features (arrays, JSONB, custom types)
608- - MySQL-specific syntax and functions
609- - SQL Server T-SQL extensions
610- - Oracle PL/SQL basics
611- - SQLite pragmas and special syntax
612- - Dialect auto-detection
613-
614- ### Goals
615- - Multi-dialect parser with configuration
616- - 95% dialect-specific compliance
617- - Auto-detection with 99% accuracy
618-
619485## [ 1.0.2] - 2025-08-23
620486
621487### Added
0 commit comments