nsivabalan commented on code in PR #13615:
URL: https://github.com/apache/hudi/pull/13615#discussion_r2274718173


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestPayloadDeprecationFlow.scala:
##########
@@ -78,27 +95,41 @@ class TestPayloadDeprecationFlow extends 
SparkClientFunctionalTestHarness {
     val secondUpdate = spark.createDataFrame(secondUpdateData).toDF(columns: 
_*)
     secondUpdate.write.format("hudi").
       option(OPERATION.key(), "upsert").
-      option(HoodieCompactionConfig.INLINE_COMPACT.key(), "true").
+      option(HoodieCompactionConfig.INLINE_COMPACT.key(), "false").
       option(HoodieCompactionConfig.INLINE_COMPACT_NUM_DELTA_COMMITS.key(), 
"1").
-      options(opts).
       mode(SaveMode.Append).
       save(basePath)
-    // 4. Validate.
-    val df = spark.read.format("hudi").options(opts).load(basePath)
+    // 4. Add a trivial update to trigger payload class mismatch.
+    val thirdUpdateData = Seq(
+      (12, "3", "rider-CC", "driver-CC", 33.90, "i"))
+    val thirdUpdate = spark.createDataFrame(thirdUpdateData).toDF(columns: _*)
+    if (!payloadClazz.equals(classOf[MySqlDebeziumAvroPayload].getName)) {

Review Comment:
   not really much of a concern. punting this for now. 



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