fix(snowflake): strip trailing semicolon before dry_run describe - #2487
Conversation
Snowflake ProgrammingError on trailing ; for cursor.describe matches query/limit composition strip already used on the execute path.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughSnowflake dry runs now strip trailing semicolons and whitespace before calling ChangesSnowflake dry-run handling
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
cursor.describedry runs._strip_trailing_semicolonused for query LIMIT wrap.Motivation
SQL clients often terminate statements with
;.describe("SELECT 1;")fails with ProgrammingError whilequeryalready strips. Dry-run then reports invalid SQL for valid statements.Verification
;(test AssertionError)pytest tests/unit/test_snowflake_limit_pushdown.py→ 6 passedcore/**Files
Summary by CodeRabbit