Skip to content

Snowflake: Add ALTER EXTERNAL VOLUME - #2474

Open
sabir-akhadov-localstack wants to merge 3 commits into
apache:mainfrom
localstack:pr/07-alter-external-volume
Open

sabir-akhadov-localstack wants to merge 3 commits into
apache:mainfrom
localstack:pr/07-alter-external-volume

Conversation

@sabir-akhadov-localstack

@sabir-akhadov-localstack sabir-akhadov-localstack commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Snowflake's ALTER EXTERNAL VOLUME did not parse:

ALTER EXTERNAL VOLUME my_vol ADD STORAGE_LOCATION = (
    NAME = 'loc2' STORAGE_PROVIDER = 'S3' STORAGE_BASE_URL = 's3://bucket2/');
ALTER EXTERNAL VOLUME my_vol SET ALLOW_WRITES = TRUE;
ALTER EXTERNAL VOLUME my_vol REMOVE STORAGE_LOCATION 'loc1';

This adds an AlterExternalVolume statement with the three documented operations (ADD STORAGE_LOCATION, SET ALLOW_WRITES, REMOVE STORAGE_LOCATION). The added storage location reuses the same generic KeyValueOptions parsing as CREATE EXTERNAL VOLUME. All statements round-trip.

See the Snowflake ALTER EXTERNAL VOLUME docs.

Split out of #2397 per review feedback, alongside the CREATE/DROP (#2475), DESC (#2472), and SHOW (#2473) PRs.

Stacked on #2475 (it reuses the storage-location parsing helper introduced there) — only the last commit is new. Kept as a draft until #2475 merges, then it will be rebased.

@codecov-commenter

codecov-commenter commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.30159% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.55%. Comparing base (424378c) to head (faad11a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/dialect/snowflake.rs 88.88% 0 Missing and 8 partials ⚠️
src/ast/mod.rs 87.75% 1 Missing and 5 partials ⚠️
src/ast/spans.rs 50.00% 1 Missing ⚠️
src/parser/mod.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2474      +/-   ##
==========================================
+ Coverage   81.52%   81.55%   +0.03%     
==========================================
  Files          42       42              
  Lines       34205    34330     +125     
  Branches    34205    34330     +125     
==========================================
+ Hits        27885    27998     +113     
  Misses       2770     2770              
- Partials     3550     3562      +12     

☔ 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 Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sabir-akhadov-localstack
sabir-akhadov-localstack marked this pull request as ready for review October 21, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebasing The PR has collisions with main and requires rebasing Snowflake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants