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

Get Fabric certified for FREE! Don't miss your chance! 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

Helpful resources

Announcements
Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.