yihua commented on code in PR #13022:
URL: https://github.com/apache/hudi/pull/13022#discussion_r2014658308
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestSevenToEightUpgrade.scala:
##########
@@ -102,4 +110,179 @@ class TestSevenToEightUpgrade extends
RecordLevelIndexTestBase {
assertEquals(RecordMergeMode.EVENT_TIME_ORDERING.name,
metaClient.getTableConfig.getRecordMergeMode.name)
}
}
+
+ /**
+ * 1. Starts with current version (version 8) with both column stats and
record index enabled.
+ * 2. Performs initial commits, inline compaction, and cleaning (leaving
delete blocks).
+ * 3. Downgrades the table to version 6 and validates that metadata
compaction happened.
+ * 4. Upgrades back to version 8 and validates the record index.
+ * 5. Validates data as well after upgrade/downgrade.
+ */
+ @Test
+ def testUpgradeDowngradeWithMultipleMetadataPartitionsDeleteBlocks(): Unit =
{
Review Comment:
Could you report the time to run the new tests?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]