Skip to content

Snowflake: parse DESC[RIBE] VIEW / DATABASE / SCHEMA - #2767

Open
sabir-akhadov-localstack wants to merge 1 commit into
apache:mainfrom
localstack:pr/12-describe-object
Open

sabir-akhadov-localstack wants to merge 1 commit into
apache:mainfrom
localstack:pr/12-describe-object

Conversation

@sabir-akhadov-localstack

@sabir-akhadov-localstack sabir-akhadov-localstack commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Snowflake's DESC[RIBE] { VIEW | DATABASE | SCHEMA } <name> failed to parse:

DESCRIBE VIEW db.s.v
-- Expected: end of statement, found: db
DESC SCHEMA db.s
-- Expected: end of statement, found: db

Adds Statement::DescribeObject (keyed on ObjectType, like Statement::Drop) and parses the three forms in parse_explain next to the existing DESC [TABLE] <name> handling, gated behind a new Dialect::supports_describe_object() (Snowflake, Generic) so DESC schema keeps describing a table named schema elsewhere.

@codecov-commenter

codecov-commenter commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.68293% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.53%. Comparing base (c45d1f4) to head (e727809).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/parser/mod.rs 91.30% 0 Missing and 2 partials ⚠️
src/ast/spans.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2767      +/-   ##
==========================================
+ Coverage   82.48%   82.53%   +0.04%     
==========================================
  Files          42       42              
  Lines       35469    35580     +111     
  Branches    35469    35580     +111     
==========================================
+ Hits        29258    29367     +109     
- Misses       2675     2676       +1     
- Partials     3536     3537       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants