danny0405 commented on code in PR #10949:
URL: https://github.com/apache/hudi/pull/10949#discussion_r1554762060


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/ddl/TestSpark3DDL.scala:
##########
@@ -779,7 +782,9 @@ class TestSpark3DDL extends HoodieSparkSqlTestBase {
           spark.read.format("hudi").load(tablePath).show(false)
 
           val updatesAgain = 
QuickstartUtils.convertToStringList(dataGen.generateUpdates(10))
-          val dfAgain = 
spark.read.json(spark.sparkContext.parallelize(updatesAgain, 
2)).withColumn("fare", expr("cast(fare as string)"))
+          val dfAgain = 
spark.read.json(spark.sparkContext.parallelize(updatesAgain, 2)).
+            withColumn("fare", expr("cast(fare as string)")).
+            withColumn("ts", lit("20240404000015")) // to make test 
determinate for HOODIE_AVRO_DEFAULT payload
           dfAgain.write.format("hudi").

Review Comment:
   Does the `withColumn` overrides the overall column of the original dataset?



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