vamshikrishnakyatham commented on code in PR #14017:
URL: https://github.com/apache/hudi/pull/14017#discussion_r2396437774


##########
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:
   was used for introducing delays in debugging - removed



-- 
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]

Reply via email to