Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

60 Days of Data Days! Live and on-demand sessions, challenges, study groups and more! And it's all FREE!. Join now. Learn more

Reply
amaaiia
Skilled Sharer
Skilled Sharer

How does V-ORDER exactly work?

Hi,

Which is de equivalent of running V-ORDER with visual interface in Spark SQL?

amaaiia_0-1736869589166.png

 

 

I mean, the equivalent of OPTIMIZE would be:

 

 

query = f"OPTIMIZE {table_name} ZORDER BY ({col1}, {col2})"
spark.sql(query)

 

 

 

VACUUM:

 

 

 

query = f"VACUUM {table_name} RETAIN {retention_hours} HOURS"
spark.sql(query)

 

 

 

Which would be de equivalent of running V-ORDER?

 

1 ACCEPTED SOLUTION
1 REPLY 1
lbendlin
Super User
Super User

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.