fix(parser): ILIKE + PIVOT/UNPIVOT for Snowflake (#483)#484
fix(parser): ILIKE + PIVOT/UNPIVOT for Snowflake (#483)#484ajitpratap0 merged 2 commits intomainfrom
Conversation
ILIKE was rejected with a "PostgreSQL-specific" error in every non-Postgres dialect, but Snowflake and ClickHouse natively support it. Allow it in those dialects and update the rejection message for the remaining ones. PIVOT/UNPIVOT was implemented in #477 and gated to SQL Server / Oracle only. Snowflake also supports the same syntax — extend the gate. Part of #483 (Snowflake parser gaps from QA sweep).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ajitpratap0's task —— View job Code Review Complete ✅Reviewing PR for Snowflake ILIKE and PIVOT/UNPIVOT support: Review Tasks
Review Feedback✅ Overall Assessment: LGTM with Minor SuggestionsThis is a well-implemented fix that correctly addresses the Snowflake dialect support issues. The changes are minimal, focused, and follow the existing codebase patterns. Code Quality & Implementation🟢 ILIKE Implementation (
🟢 PIVOT/UNPIVOT Implementation (
Test Coverage🟢 Comprehensive test suite (
Security & Performance🟢 No concerns identified:
Minor Suggestions for Future Consideration
Code Correctness
Technical AccuracyVerified that:
Recommendation: Approve and Merge 🚀 This PR successfully fixes the reported issues with minimal, surgical changes. The implementation is correct, well-tested, and maintains backward compatibility. |
|
Claude finished @ajitpratap0's task —— View job Code Review Complete ✅Reviewing PR for Snowflake ILIKE and PIVOT/UNPIVOT support: Review Tasks
Review Feedback✅ Overall Assessment: LGTM with Minor SuggestionsThis is a well-implemented fix that correctly addresses the Snowflake dialect support issues. The changes are minimal, focused, and follow the existing codebase patterns. Code Quality & Implementation🟢 ILIKE Implementation (
🟢 PIVOT/UNPIVOT Implementation (
Test Coverage🟢 Comprehensive test suite (
Security & Performance🟢 No concerns identified:
Minor Suggestions for Future Consideration
Code Correctness
Technical AccuracyVerified that:
Recommendation: Approve and Merge 🚀 This PR successfully fixes the reported issues with minimal, surgical changes. The implementation is correct, well-tested, and maintains backward compatibility. |
Summary
Two Snowflake correctness fixes from the QA sweep (#483).
Test plan
pkg/sql/parser/snowflake_ilike_pivot_test.gogo test -race ./pkg/sql/parser/ ./pkg/gosqlx/greenPart of #483.
🤖 Generated with Claude Code