You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please include copy-pastable code snippets if possible.
create table default.test (c1 int, c2 int) using delta partitioned by (c2) TBLPROPERTIES('delta.columnMapping.mode'='name');
alter table default.test drop column c1;
Observed results
Creating tables with all partition columns (e.g. create table default.test2 (a int) using delta partitioned by (c2)) throws "Cannot use all columns for partition columns" error message, but dropping last non-partition columns succeeds.
Expected results
Throw exceptions when the target column of DROP COLUMN is the last non-partition column.
Further details
Environment information
Delta Lake version: 2.3.0
Spark version: 3.3.2
Scala version: 2.12
Willingness to contribute
The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?
No. I cannot contribute a bug fix at this time.
The text was updated successfully, but these errors were encountered:
Bug
Which Delta project/connector is this regarding?
Describe the problem
Steps to reproduce
Please include copy-pastable code snippets if possible.
create table default.test (c1 int, c2 int) using delta partitioned by (c2) TBLPROPERTIES('delta.columnMapping.mode'='name');
alter table default.test drop column c1;
Observed results
Creating tables with all partition columns (e.g.
create table default.test2 (a int) using delta partitioned by (c2)
) throws "Cannot use all columns for partition columns" error message, but dropping last non-partition columns succeeds.Expected results
Throw exceptions when the target column of
DROP COLUMN
is the last non-partition column.Further details
Environment information
Willingness to contribute
The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?
The text was updated successfully, but these errors were encountered: