feat(parser): Snowflake LIKE ANY/ALL and ILIKE ANY/ALL (#483)#500
feat(parser): Snowflake LIKE ANY/ALL and ILIKE ANY/ALL (#483)#500ajitpratap0 merged 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task —— View job Code Review: Snowflake LIKE ANY/ALL ImplementationCompleted comprehensive review of the Snowflake LIKE ANY/ALL and ILIKE ANY/ALL pattern matching implementation. Todo List
✅ Overall Assessment: APPROVEDThis is a well-implemented, focused feature addition that correctly follows the project's patterns and conventions. 📋 Detailed ReviewCode Quality: ExcellentThe implementation in
Implementation Details: Sound✅ Correct operator composition: Test Coverage: ComprehensiveThe test file
Suggestion: Consider adding edge case tests: // Empty tuple test
"empty_tuple": `SELECT * FROM t WHERE name LIKE ANY ()`
// Single element tuple
"single_tuple": `SELECT * FROM t WHERE name LIKE ANY ('%test%')`Security: No Concerns
Performance: Optimal
Edge Cases & Error Handling✅ Missing parentheses: Line 123 properly expects Minor Enhancement Opportunity: Consider explicit dialect checking: // After line 117, add:
if p.dialect != "" && p.dialect != string(keywords.DialectSnowflake) {
return nil, fmt.Errorf("LIKE %s is Snowflake-specific", quantifier)
}Integration & Consistency✅ Follows project patterns: Mirrors existing 🎯 Recommendations
🔄 Part of Larger EpicThis cleanly implements part of issue #483 (Snowflake dialect support) without interfering with existing functionality or introducing technical debt. |
Bumps go.opentelemetry.io/otel/sdk and related packages from v1.42.0 to v1.43.0 to remediate CVE-2026-39883 flagged by the Trivy repository scan. This CVE is the root cause of the Trivy / Security Scan Summary failures on PRs #500 and #501.
* fix(deps): upgrade opentelemetry SDK to v1.43.0 (CVE-2026-39883) Bumps go.opentelemetry.io/otel/sdk and related packages from v1.42.0 to v1.43.0 to remediate CVE-2026-39883 flagged by the Trivy repository scan. This CVE is the root cause of the Trivy / Security Scan Summary failures on PRs #500 and #501. * fix(security): add CVE-2026-39883 to trivyignore (resolved by otel v1.43.0 upgrade) --------- Co-authored-by: Ajit Pratap Singh <ajitpratapsingh@Ajits-Mac-mini-2655.local>
47bd292 to
13bc99b
Compare
|
Claude finished @ajitpratap0's task —— View job Code Review: Snowflake LIKE ANY/ALL ImplementationCompleted comprehensive review of the Snowflake LIKE ANY/ALL and ILIKE ANY/ALL pattern matching implementation. Todo List
✅ Overall Assessment: APPROVEDThis is a well-implemented, focused feature addition that correctly follows the project's patterns and conventions. 📋 Detailed ReviewCode Quality: ExcellentThe implementation in
Implementation Details: Sound✅ Correct operator composition: Test Coverage: ComprehensiveThe test file
Suggestion: Consider adding edge case tests: // Empty tuple test
"empty_tuple": `SELECT * FROM t WHERE name LIKE ANY ()`
// Single element tuple
"single_tuple": `SELECT * FROM t WHERE name LIKE ANY ('%test%')`Security: No Concerns
Performance: Optimal
Edge Cases & Error Handling✅ Missing parentheses: Line 123 properly expects Minor Enhancement Opportunity: Consider explicit dialect checking: // After line 117, add:
if p.dialect != "" && p.dialect != string(keywords.DialectSnowflake) {
return nil, fmt.Errorf("LIKE %s is Snowflake-specific", quantifier)
}Integration & Consistency✅ Follows project patterns: Mirrors existing 🎯 Recommendations
🔄 Part of Larger EpicThis cleanly implements part of issue #483 (Snowflake dialect support) without interfering with existing functionality or introducing technical debt. |
Summary
Adds Snowflake `LIKE ANY/ALL` and `ILIKE ANY/ALL` pattern matching with tuple lists.
What now parses
Implementation
After consuming `LIKE`/`ILIKE`, check for `ANY`/`ALL` quantifier tokens. If present, compose operator as `"LIKE ANY"` / `"ILIKE ALL"`, then parse the `(...)` tuple via the existing `parsePrimaryExpression` (which handles parenthesised tuples). Result is a standard `BinaryExpression` with the quantified operator string and a tuple RHS.
Test plan
Part of #483.
🤖 Generated with Claude Code