I have a table with 150 columns and my OPTIMIZE command never finishes. How to tune it

brickster_2018
Databricks Employee
Databricks Employee
 

amr
Databricks Employee
Databricks Employee

If the data in your table is huge, try to combine OPTIMIZE with WHERE so you only perform OPTIMIZE on a subset of the data rather than all data. see documentation here.