cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Delta Table: Drop column failure

auser85
New Contributor III

DBR 10.5, Spark 3.2.1

```

%sql

CREATE TABLE testing (

    name string,

    counter int

    )

     USING DELTA

     OPTIONS (PATH "/mnt/general/testingtbl/")

```

```

%sql

insert into testing (name, counter) values ('a', 1)

```

```

%sql

ALTER TABLE testing SET TBLPROPERTIES (

 'delta.minReaderVersion' = '2',

 'delta.minWriterVersion' = '5',

 'delta.columnMapping.mode' = 'name'

)

```

```

%sql alter table testing drop column counter

```

Returns this error: Unrecognized column change class org.apache.spark.sql.connector.catalog.TableChange$DeleteColumn. You may be running an out of date Delta Lake version

1 REPLY 1

auser85
New Contributor III

Yes DBR 11.0 Beta allows that functionality!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group