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:ย 

Drop array in a struct field

William_Scardua
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

2 REPLIES 2

Sampath_Kumar
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

Thanks

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.

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