Skip to content

PostgreSQL: Support ALTER COLUMN ... DROP EXPRESSION - #2999

Merged
alamb merged 2 commits into
mainfrom
upstream/pg-alter-column-drop-expression
Nov 21, 2026
Merged

alamb merged 2 commits into
mainfrom
upstream/pg-alter-column-drop-expression

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

This PR adds AlterColumnOperation::DropExpression, so as to support ALTER TABLE t ALTER COLUMN c DROP EXPRESSION [ IF EXISTS ].

@codecov-commenter

codecov-commenter commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.51%. Comparing base (0d22d99) to head (9a6ae4d).

Files with missing lines Patch % Lines
src/ast/ddl.rs 60.00% 0 Missing and 2 partials ⚠️
src/ast/spans.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2999      +/-   ##
==========================================
- Coverage   83.51%   83.51%   -0.01%     
==========================================
  Files          42       42              
  Lines       35647    35657      +10     
  Branches    35647    35657      +10     
==========================================
+ Hits        29772    29779       +7     
- Misses       2437     2438       +1     
- Partials     3438     3440       +2     

☔ 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.

…umn-drop-expression

# Conflicts:
#	tests/sqlparser_postgres.rs

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to me

@alamb
alamb added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 6075d17 Nov 21, 2026
10 checks passed
@LucaCappelletti94
LucaCappelletti94 deleted the upstream/pg-alter-column-drop-expression branch November 21, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants