[HUDI-400] Check upgrade from old plan to new plan for compaction (#1422)
* Fix NPE when DataFile is null * Check from old plan upgrade to new plan
This commit is contained in:
@@ -84,6 +84,8 @@ public class TestCompactionUtils extends HoodieCommonTestHarness {
|
||||
HoodieCompactionPlan newPlan = migrator.upgradeToLatest(plan, plan.getVersion());
|
||||
Assert.assertEquals(LATEST_COMPACTION_METADATA_VERSION, newPlan.getVersion());
|
||||
testFileSlicesCompactionPlanEquality(inputAndPlan.getKey(), newPlan);
|
||||
HoodieCompactionPlan latestPlan = migrator.migrateToVersion(oldPlan, oldPlan.getVersion(), newPlan.getVersion());
|
||||
testFileSlicesCompactionPlanEquality(inputAndPlan.getKey(), latestPlan);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user