the-other-tim-brown commented on code in PR #14017:
URL: https://github.com/apache/hudi/pull/14017#discussion_r2396433102
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/cdc/TestCDCDataFrameSuite.scala:
##########
@@ -844,4 +844,52 @@ class TestCDCDataFrameSuite extends HoodieCDCTestBase {
assertCDCOpCnt(result3, 3, 1, 0)
assertEquals(result3.count(), 4)
}
+
+ @Test
+ def testCDCQueryWithOrdering(): Unit = {
+ val options = commonOpts ++ Map(
+ HoodieTableConfig.CDC_SUPPLEMENTAL_LOGGING_MODE.key ->
HoodieCDCSupplementalLoggingMode.DATA_BEFORE_AFTER.name()
+ )
+
+ val records1 = recordsToStrings(dataGen.generateInserts("000",
5)).asScala.toList
+ val inputDF1 = spark.read.json(spark.sparkContext.parallelize(records1, 2))
+ inputDF1.write.format("org.apache.hudi")
+ .options(options)
+ .mode(SaveMode.Overwrite)
+ .save(basePath)
+
+ metaClient = createMetaClient(spark, basePath)
+ Thread.sleep(1000)
Review Comment:
we should avoid sleeps in tests, is this required?
--
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]