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.
Showing results for 
Search instead for 
Did you mean: 

Drop array in a struct field

Valued Contributor

Hi guys,

look my table definition

Screenshot 2024-04-02 at 19.03.38.png

well, I need to remove 'med array' inside that 'equip' field.

have any idea ?

Thank you


New Contributor II

Hi William,

There is array_remove method that can help to remove the elements from an array. Here med array is an element in equip array.

If it not helpful, please share some sample data so that we can solve it together.

Reference: array_remove


Hi Sampath,

In fact, I need to change this field in the table structure ... so, I need to apply an 'alter table' to remove the 'med' array from the 'equip' field.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!