- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OPTIMIZE VORDER for partitioned tables
Hi,
I have a lakehouse with some tables under Tables directory.
Some of the tables are partitioned by YEAR, MONTH, DAY, and other tables are not partitioned.
I've applied OPTIMIZE+VORDER to all the tables and I only see changes in the NOT partitioned tables. I see a new parquet file for theese tables, but partitioned tables have not changes in _delta_log directory nor new parquet file.
Why??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @amaaiia,
Thank you for reaching out in Microsoft Community Forum.
The reason you’re not seeing changes in partitioned tables after running OPTIMIZE and VORDER is:
OPTIMIZE skips partitions that are already optimized, such as large or non-fragmented files.
VORDER only triggers changes if significant data reorganization is required.
please follow below steps to resolve this error;
1. please Check Partition Size using below code
DESCRIBE DETAIL delta.`/lakehouse_path/partitioned_table`
2.Force Optimization on Specific Partitions
OPTIMIZE delta.`/lakehouse_path/partitioned_table` WHERE YEAR = '2024'
3. Please Verify Optimization History
DESCRIBE HISTORY delta.`/lakehouse_path/partitioned_table`
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @amaaiia,
Thank you for reaching out in Microsoft Community Forum.
The reason you’re not seeing changes in partitioned tables after running OPTIMIZE and VORDER is:
OPTIMIZE skips partitions that are already optimized, such as large or non-fragmented files.
VORDER only triggers changes if significant data reorganization is required.
please follow below steps to resolve this error;
1. please Check Partition Size using below code
DESCRIBE DETAIL delta.`/lakehouse_path/partitioned_table`
2.Force Optimization on Specific Partitions
OPTIMIZE delta.`/lakehouse_path/partitioned_table` WHERE YEAR = '2024'
3. Please Verify Optimization History
DESCRIBE HISTORY delta.`/lakehouse_path/partitioned_table`
Please continue using Microsoft community forum.
If you found this post helpful, please consider marking it as "Accept as Solution" and give it a 'Kudos'. if it was helpful. help other members find it more easily.
Regards,
Pavan.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
09-12-2023 12:53 PM | |||
08-29-2024 01:08 AM | |||
02-10-2025 02:03 AM | |||
08-08-2024 12:38 PM | |||
08-13-2024 03:06 PM |
User | Count |
---|---|
10 | |
6 | |
2 | |
2 | |
2 |
User | Count |
---|---|
10 | |
9 | |
7 | |
7 | |
5 |