TheR1sing3un commented on code in PR #14211:
URL: https://github.com/apache/hudi/pull/14211#discussion_r2494179681


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/feature/index/TestSecondaryIndex.scala:
##########
@@ -581,7 +580,7 @@ class TestSecondaryIndex extends HoodieSparkSqlTestBase {
       // Perform Deletes on Records and Validate Secondary Index
       val deleteDf = 
spark.read.format("hudi").load(basePath).filter(s"_row_key in 
('${updateKeys.mkString("','")}')")
       // Get fileId for the delete record
-      val deleteFileId = 
deleteDf.select("_hoodie_file_name").collect().head.getString(0)
+      val deleteFileId = 
FSUtils.getFileId(deleteDf.select("_hoodie_file_name").collect().head.getString(0))

Review Comment:
   > The reason for generating flaky test is here `_hoodie_file_name` for log 
files, the value is file id, but for parquet files, the value is file name
   
   related another pr: https://github.com/apache/hudi/pull/12494
   



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