You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "jonvex (via GitHub)" <gi...@apache.org> on 2025/08/07 18:48:57 UTC

[PR] use buffered merger instead of record merger [hudi]

jonvex opened a new pull request, #13694:
URL: https://github.com/apache/hudi/pull/13694

   ### Change Logs
   
   _Describe context and summary for this change. Highlight if any code was copied._
   
   ### Impact
   
   _Describe any public API or user-facing feature change or any performance impact._
   
   ### Risk level (write none, low medium or high below)
   
   _If medium or high, explain what verification was done to mitigate the risks._
   
   ### Documentation Update
   
   _Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none"._
   
   - _The config description must be updated if new configs are added or the default value of the configs are changed_
   - _Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
     ticket number here and follow the [instruction](https://hudi.apache.org/contribute/developer-setup#website) to make
     changes to the website._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] use buffered merger instead of record merger [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3165601871

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 19020c4cc6be17b41607b87169734df3411fe03a Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615) 
   * 54d551c03a09145a4266d618229ebae489680ab6 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2268310108


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/feature/TestCDCForSparkSQL.scala:
##########
@@ -304,4 +307,86 @@ class TestCDCForSparkSQL extends HoodieSparkSqlTestBase {
       }
     }
   }
+
+  test("Test Partial Updates With Spark CDC") {
+    val databaseName = "hudi_database"
+    spark.sql(s"create database if not exists $databaseName")
+    spark.sql(s"use $databaseName")
+    withSQLConf(HoodieWriteConfig.MERGE_SMALL_FILE_GROUP_CANDIDATES_LIMIT.key ->"0",
+      DataSourceWriteOptions.ENABLE_MERGE_INTO_PARTIAL_UPDATES.key -> "true",
+      HoodieStorageConfig.LOGFILE_DATA_BLOCK_FORMAT.key -> "parquet",

Review Comment:
   nit: setting `LOGFILE_DATA_BLOCK_FORMAT` is not necessary.



##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/feature/TestCDCForSparkSQL.scala:
##########
@@ -304,4 +307,86 @@ class TestCDCForSparkSQL extends HoodieSparkSqlTestBase {
       }
     }
   }
+
+  test("Test Partial Updates With Spark CDC") {
+    val databaseName = "hudi_database"
+    spark.sql(s"create database if not exists $databaseName")
+    spark.sql(s"use $databaseName")
+    withSQLConf(HoodieWriteConfig.MERGE_SMALL_FILE_GROUP_CANDIDATES_LIMIT.key ->"0",
+      DataSourceWriteOptions.ENABLE_MERGE_INTO_PARTIAL_UPDATES.key -> "true",
+      HoodieStorageConfig.LOGFILE_DATA_BLOCK_FORMAT.key -> "parquet",
+      HoodieReaderConfig.FILE_GROUP_READER_ENABLED.key -> "true") {
+      Seq(OP_KEY_ONLY, DATA_BEFORE).foreach { loggingMode =>

Review Comment:
   Should this also test `DATA_BEFORE_AFTER`?



##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/feature/TestCDCForSparkSQL.scala:
##########
@@ -304,4 +307,86 @@ class TestCDCForSparkSQL extends HoodieSparkSqlTestBase {
       }
     }
   }
+
+  test("Test Partial Updates With Spark CDC") {
+    val databaseName = "hudi_database"
+    spark.sql(s"create database if not exists $databaseName")
+    spark.sql(s"use $databaseName")
+    withSQLConf(HoodieWriteConfig.MERGE_SMALL_FILE_GROUP_CANDIDATES_LIMIT.key ->"0",

Review Comment:
   ```suggestion
       withSQLConf(HoodieWriteConfig.MERGE_SMALL_FILE_GROUP_CANDIDATES_LIMIT.key -> "0",
   ```



##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -75,6 +76,27 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
   extends Iterator[InternalRow]
   with SparkAdapterSupport with AvroDeserializerSupport with Closeable {
 
+  private lazy val readerContext = {
+    val bufferedReaderContext = new SparkFileFormatInternalRowReaderContext(baseFileReader,
+      Seq.empty, Seq.empty, conf, metaClient.getTableConfig)
+    bufferedReaderContext.initRecordMerger(readerProperties)
+    bufferedReaderContext
+  }
+
+  private lazy val orderingFieldNames = HoodieRecordUtils.getOrderingFieldNames(readerContext.getMergeMode, props, metaClient)
+  private lazy val payloadClass: Option[String] = if (recordMerger.getMergingStrategy == PAYLOAD_BASED_MERGE_STRATEGY_UUID) {
+    Option.of(metaClient.getTableConfig.getPayloadClass)
+  } else {
+    Option.empty.asInstanceOf[Option[String]]
+  }
+  private lazy val partialUpdateMode: PartialUpdateMode = metaClient.getTableConfig.getPartialUpdateMode
+  private var isPartialMergeEnabled = false
+  private var bufferedRecordMerger = getBufferedRecordMerger
+  private def getBufferedRecordMerger: BufferedRecordMerger[InternalRow] = BufferedRecordMergerFactory.create(readerContext,
+    readerContext.getMergeMode, isPartialMergeEnabled, Option.of(recordMerger), orderingFieldNames,
+    payloadClass, avroSchema, props, partialUpdateMode)
+
+

Review Comment:
   nit: Redundant empty line



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2265019448


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -516,17 +525,19 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withBufferSize(HoodieMetadataConfig.MAX_READER_BUFFER_SIZE_PROP.defaultValue)
       .withPartition(partitionPath)
       .withMetaClient(metaClient)
-      .withRecordBuffer(recordBuffer)
+      .withRecordBuffer(keyBasedFileGroupRecordBuffer.get())
       .build
 
-    CloseableIteratorListener.addListener(recordBuffer.getLogRecordIterator).asScala
+    CloseableIteratorListener.addListener(keyBasedFileGroupRecordBuffer.get().getLogRecordIterator).asScala
   }
 
   /**
    * Convert InternalRow to json string.
    */
-  private def convertRowToJsonString(record: InternalRow): UTF8String = {
-    internalRowToJsonStringConverter.convert(record)
+  private def convertBufferedRecordToJsonString(record: BufferedRecord[InternalRow]): UTF8String = {
+    internalRowToJsonStringConverterMap.getOrElseUpdate(record.getSchemaId,
+      new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(readerContext.getRecordContext.decodeAvroSchema(record.getSchemaId))))

Review Comment:
   Should the second arg be a supplier?



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3175324728

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * e559c7dfafd475dc10520f1b78099587fbdf8810 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651) 
   * c3dddb3df9c43b3c1830fe134c9b12401fa548f1 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3179339760

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716",
       "triggerID" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "52194301b3d81d7ad519d852831af78a4642aefe",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "52194301b3d81d7ad519d852831af78a4642aefe",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * c3dddb3df9c43b3c1830fe134c9b12401fa548f1 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716) 
   * 52194301b3d81d7ad519d852831af78a4642aefe UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] use buffered merger instead of record merger [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3165367740

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 19020c4cc6be17b41607b87169734df3411fe03a Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2265018860


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -540,15 +551,24 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
     convertToUTF8String(HoodieCDCUtils.recordToJson(record))
   }
 
-  private def merge(currentRecord: InternalRow, newRecord: InternalRow): ImmutablePair[HoodieSparkRecord, Schema] = {
-    recordMerger.merge(new HoodieSparkRecord(currentRecord, structTypeSchema), avroSchema,
-      new HoodieSparkRecord(newRecord, structTypeSchema), avroSchema, props)
-      .get().asInstanceOf[ImmutablePair[HoodieSparkRecord, Schema]]
+  private def merge(currentRecord: BufferedRecord[InternalRow], newRecord: BufferedRecord[InternalRow]): BufferedRecord[InternalRow] = {
+    if (!isPartialMergeEnabled && keyBasedFileGroupRecordBuffer.isPresent && keyBasedFileGroupRecordBuffer.get().isPartialMergingEnabled) {

Review Comment:
   ok, I think we're good to match the existing behavior.



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3175990868

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716",
       "triggerID" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * c3dddb3df9c43b3c1830fe134c9b12401fa548f1 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua merged PR #13694:
URL: https://github.com/apache/hudi/pull/13694


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3168339213

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 54d551c03a09145a4266d618229ebae489680ab6 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619) 
   * e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2263866985


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -516,17 +525,19 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withBufferSize(HoodieMetadataConfig.MAX_READER_BUFFER_SIZE_PROP.defaultValue)
       .withPartition(partitionPath)
       .withMetaClient(metaClient)
-      .withRecordBuffer(recordBuffer)
+      .withRecordBuffer(keyBasedFileGroupRecordBuffer.get())
       .build
 
-    CloseableIteratorListener.addListener(recordBuffer.getLogRecordIterator).asScala
+    CloseableIteratorListener.addListener(keyBasedFileGroupRecordBuffer.get().getLogRecordIterator).asScala
   }
 
   /**
    * Convert InternalRow to json string.
    */
-  private def convertRowToJsonString(record: InternalRow): UTF8String = {
-    internalRowToJsonStringConverter.convert(record)
+  private def convertBufferedRecordToJsonString(record: BufferedRecord[InternalRow]): UTF8String = {
+    internalRowToJsonStringConverterMap.getOrElseUpdate(record.getSchemaId,
+      new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(readerContext.getRecordContext.decodeAvroSchema(record.getSchemaId))))

Review Comment:
   make sure this is lazy



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2269778488


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -489,24 +500,22 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withProps(readerProperties)
       .withLatestCommitTime(split.changes.last.getInstant)
       .build()
-    CloseableIteratorListener.addListener(fileGroupReader.getClosableIterator).asScala
+    CloseableIteratorListener.addListener(fileGroupReader.getClosableBufferedRecordIterator).asScala
   }
 
   private def loadLogFile(logFile: HoodieLogFile, instant: String): Iterator[BufferedRecord[InternalRow]] = {
     val partitionPath = FSUtils.getRelativePartitionPath(metaClient.getBasePath, logFile.getPath.getParent)
-    val readerContext = new SparkFileFormatInternalRowReaderContext(baseFileReader, Seq.empty, Seq.empty,
-      conf, metaClient.getTableConfig)
     readerContext.setLatestCommitTime(instant)
     readerContext.setHasBootstrapBaseFile(false)
     readerContext.setHasLogFiles(true)
-    readerContext.initRecordMerger(readerProperties)
     readerContext.setSchemaHandler(
       new FileGroupReaderSchemaHandler[InternalRow](readerContext, avroSchema, avroSchema,
         Option.empty(), metaClient.getTableConfig, readerProperties))
     val stats = new HoodieReadStats
-    val recordBuffer = new KeyBasedFileGroupRecordBuffer[InternalRow](readerContext, metaClient, readerContext.getMergeMode,
+    keyBasedFileGroupRecordBuffer.ifPresent(k => k.close())
+    keyBasedFileGroupRecordBuffer = Option.of(new KeyBasedFileGroupRecordBuffer[InternalRow](readerContext, metaClient, readerContext.getMergeMode,

Review Comment:
   we need to check in merge if partial merging is enabled. I was wondering if we could have it always enabled, but it sounded like that would harm performance significantly.
   ```
     private def merge(currentRecord: BufferedRecord[InternalRow], newRecord: BufferedRecord[InternalRow]): BufferedRecord[InternalRow] = {
       if (!isPartialMergeEnabled && keyBasedFileGroupRecordBuffer.isPresent && keyBasedFileGroupRecordBuffer.get().isPartialMergingEnabled) {
         isPartialMergeEnabled = true
         bufferedRecordMerger = getBufferedRecordMerger
       }
       val deltaMergeResult = bufferedRecordMerger.deltaMerge(newRecord, currentRecord)
       if (deltaMergeResult.isEmpty) {
         currentRecord
       } else {
         deltaMergeResult.get()
       }
     }
   ```



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] use buffered merger instead of record merger [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3165597599

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 19020c4cc6be17b41607b87169734df3411fe03a Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615) 
   * 54d551c03a09145a4266d618229ebae489680ab6 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3168807148

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2264847458


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -280,11 +280,17 @@ public void close() throws IOException {
     }
   }
 
+  // don't make this public because caller is expected to set the iterator mode

Review Comment:
   Would it be better just to add iterator mode as a param and then set it in this method? So caller is forced to decide?



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2269828301


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -516,17 +525,19 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withBufferSize(HoodieMetadataConfig.MAX_READER_BUFFER_SIZE_PROP.defaultValue)
       .withPartition(partitionPath)
       .withMetaClient(metaClient)
-      .withRecordBuffer(recordBuffer)
+      .withRecordBuffer(keyBasedFileGroupRecordBuffer.get())
       .build
 
-    CloseableIteratorListener.addListener(recordBuffer.getLogRecordIterator).asScala
+    CloseableIteratorListener.addListener(keyBasedFileGroupRecordBuffer.get().getLogRecordIterator).asScala
   }
 
   /**
    * Convert InternalRow to json string.
    */
-  private def convertRowToJsonString(record: InternalRow): UTF8String = {
-    internalRowToJsonStringConverter.convert(record)
+  private def convertBufferedRecordToJsonString(record: BufferedRecord[InternalRow]): UTF8String = {
+    internalRowToJsonStringConverterMap.getOrElseUpdate(record.getSchemaId,
+      new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(readerContext.getRecordContext.decodeAvroSchema(record.getSchemaId))))

Review Comment:
   This passes:
   ```
     private var invokeCount: Int = 0
     private var myMap: mutable.Map[Int, InternalRowToJsonStringConverter] = new mutable.HashMap[Int, InternalRowToJsonStringConverter]
   
     def getSchema(x: Int): Schema = {
       invokeCount += x
       new Schema.Parser().parse(HoodieTestDataGenerator.TRIP_SCHEMA)
     }
   
     def getConverter(x: Int): InternalRowToJsonStringConverter = {
       myMap.getOrElseUpdate(x,
           new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(getSchema(x))))
     }
   
     test("Test by name param") {
       invokeCount = 0
       myMap = new mutable.HashMap[Int, InternalRowToJsonStringConverter]
       val converters = new mutable.ListBuffer[InternalRowToJsonStringConverter]
       for (i <- 0 to 5) {
         converters.append(getConverter(i))
       }
   
       for (i <- 0 to 5) {
         assertEquals(converters(i), getConverter(i))
       }
       assertEquals(15, invokeCount)
     }
   ```



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3168343876

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 54d551c03a09145a4266d618229ebae489680ab6 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619) 
   * e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169152143

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 69f7bc373accee6f045095f2b4afa4d61ffa8702 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649) 
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * e559c7dfafd475dc10520f1b78099587fbdf8810 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169027827

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643) 
   * 69f7bc373accee6f045095f2b4afa4d61ffa8702 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2268297362


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -489,24 +500,22 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withProps(readerProperties)
       .withLatestCommitTime(split.changes.last.getInstant)
       .build()
-    CloseableIteratorListener.addListener(fileGroupReader.getClosableIterator).asScala
+    CloseableIteratorListener.addListener(fileGroupReader.getClosableBufferedRecordIterator).asScala
   }
 
   private def loadLogFile(logFile: HoodieLogFile, instant: String): Iterator[BufferedRecord[InternalRow]] = {
     val partitionPath = FSUtils.getRelativePartitionPath(metaClient.getBasePath, logFile.getPath.getParent)
-    val readerContext = new SparkFileFormatInternalRowReaderContext(baseFileReader, Seq.empty, Seq.empty,
-      conf, metaClient.getTableConfig)
     readerContext.setLatestCommitTime(instant)
     readerContext.setHasBootstrapBaseFile(false)
     readerContext.setHasLogFiles(true)
-    readerContext.initRecordMerger(readerProperties)
     readerContext.setSchemaHandler(
       new FileGroupReaderSchemaHandler[InternalRow](readerContext, avroSchema, avroSchema,
         Option.empty(), metaClient.getTableConfig, readerProperties))
     val stats = new HoodieReadStats
-    val recordBuffer = new KeyBasedFileGroupRecordBuffer[InternalRow](readerContext, metaClient, readerContext.getMergeMode,
+    keyBasedFileGroupRecordBuffer.ifPresent(k => k.close())
+    keyBasedFileGroupRecordBuffer = Option.of(new KeyBasedFileGroupRecordBuffer[InternalRow](readerContext, metaClient, readerContext.getMergeMode,

Review Comment:
   What's the reason of reusing `keyBasedFileGroupRecordBuffer` variable here?



##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -516,17 +525,19 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withBufferSize(HoodieMetadataConfig.MAX_READER_BUFFER_SIZE_PROP.defaultValue)
       .withPartition(partitionPath)
       .withMetaClient(metaClient)
-      .withRecordBuffer(recordBuffer)
+      .withRecordBuffer(keyBasedFileGroupRecordBuffer.get())
       .build
 
-    CloseableIteratorListener.addListener(recordBuffer.getLogRecordIterator).asScala
+    CloseableIteratorListener.addListener(keyBasedFileGroupRecordBuffer.get().getLogRecordIterator).asScala
   }
 
   /**
    * Convert InternalRow to json string.
    */
-  private def convertRowToJsonString(record: InternalRow): UTF8String = {
-    internalRowToJsonStringConverter.convert(record)
+  private def convertBufferedRecordToJsonString(record: BufferedRecord[InternalRow]): UTF8String = {
+    internalRowToJsonStringConverterMap.getOrElseUpdate(record.getSchemaId,
+      new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(readerContext.getRecordContext.decodeAvroSchema(record.getSchemaId))))

Review Comment:
   @jonvex could you write a test or add breakpoints to validate that `InternalRowToJsonStringConverter` is constructed once per schema ID?



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2272280488


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -516,17 +525,19 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withBufferSize(HoodieMetadataConfig.MAX_READER_BUFFER_SIZE_PROP.defaultValue)
       .withPartition(partitionPath)
       .withMetaClient(metaClient)
-      .withRecordBuffer(recordBuffer)
+      .withRecordBuffer(keyBasedFileGroupRecordBuffer.get())
       .build
 
-    CloseableIteratorListener.addListener(recordBuffer.getLogRecordIterator).asScala
+    CloseableIteratorListener.addListener(keyBasedFileGroupRecordBuffer.get().getLogRecordIterator).asScala
   }
 
   /**
    * Convert InternalRow to json string.
    */
-  private def convertRowToJsonString(record: InternalRow): UTF8String = {
-    internalRowToJsonStringConverter.convert(record)
+  private def convertBufferedRecordToJsonString(record: BufferedRecord[InternalRow]): UTF8String = {
+    internalRowToJsonStringConverterMap.getOrElseUpdate(record.getSchemaId,
+      new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(readerContext.getRecordContext.decodeAvroSchema(record.getSchemaId))))

Review Comment:
   I used `assertSame` for stricter validation and it also passes, so it means the function is only evaluated if the key does not exist, which is what we expect.



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] use buffered merger instead of record merger [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3165362954

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 19020c4cc6be17b41607b87169734df3411fe03a UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3165975333

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 54d551c03a09145a4266d618229ebae489680ab6 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169023955

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643) 
   * 69f7bc373accee6f045095f2b4afa4d61ffa8702 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3179355786

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716",
       "triggerID" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "52194301b3d81d7ad519d852831af78a4642aefe",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7746",
       "triggerID" : "52194301b3d81d7ad519d852831af78a4642aefe",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * c3dddb3df9c43b3c1830fe134c9b12401fa548f1 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716) 
   * 52194301b3d81d7ad519d852831af78a4642aefe Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7746) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "yihua (via GitHub)" <gi...@apache.org>.
yihua commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2272288383


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -489,24 +500,22 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withProps(readerProperties)
       .withLatestCommitTime(split.changes.last.getInstant)
       .build()
-    CloseableIteratorListener.addListener(fileGroupReader.getClosableIterator).asScala
+    CloseableIteratorListener.addListener(fileGroupReader.getClosableBufferedRecordIterator).asScala
   }
 
   private def loadLogFile(logFile: HoodieLogFile, instant: String): Iterator[BufferedRecord[InternalRow]] = {
     val partitionPath = FSUtils.getRelativePartitionPath(metaClient.getBasePath, logFile.getPath.getParent)
-    val readerContext = new SparkFileFormatInternalRowReaderContext(baseFileReader, Seq.empty, Seq.empty,
-      conf, metaClient.getTableConfig)
     readerContext.setLatestCommitTime(instant)
     readerContext.setHasBootstrapBaseFile(false)
     readerContext.setHasLogFiles(true)
-    readerContext.initRecordMerger(readerProperties)
     readerContext.setSchemaHandler(
       new FileGroupReaderSchemaHandler[InternalRow](readerContext, avroSchema, avroSchema,
         Option.empty(), metaClient.getTableConfig, readerProperties))
     val stats = new HoodieReadStats
-    val recordBuffer = new KeyBasedFileGroupRecordBuffer[InternalRow](readerContext, metaClient, readerContext.getMergeMode,
+    keyBasedFileGroupRecordBuffer.ifPresent(k => k.close())
+    keyBasedFileGroupRecordBuffer = Option.of(new KeyBasedFileGroupRecordBuffer[InternalRow](readerContext, metaClient, readerContext.getMergeMode,

Review Comment:
   I think this may be OK 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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2265018468


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -280,11 +280,17 @@ public void close() throws IOException {
     }
   }
 
+  // don't make this public because caller is expected to set the iterator mode

Review Comment:
   Yes, I like that idea



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "the-other-tim-brown (via GitHub)" <gi...@apache.org>.
the-other-tim-brown commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2263956303


##########
hudi-common/src/main/java/org/apache/hudi/common/table/read/HoodieFileGroupReader.java:
##########
@@ -280,11 +280,17 @@ public void close() throws IOException {
     }
   }
 
+  // don't make this public because caller is expected to set the iterator mode

Review Comment:
   ```suggestion
     // Caller is expected to set the iterator mode before invoking this internal method
   ```



##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -540,15 +551,24 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
     convertToUTF8String(HoodieCDCUtils.recordToJson(record))
   }
 
-  private def merge(currentRecord: InternalRow, newRecord: InternalRow): ImmutablePair[HoodieSparkRecord, Schema] = {
-    recordMerger.merge(new HoodieSparkRecord(currentRecord, structTypeSchema), avroSchema,
-      new HoodieSparkRecord(newRecord, structTypeSchema), avroSchema, props)
-      .get().asInstanceOf[ImmutablePair[HoodieSparkRecord, Schema]]
+  private def merge(currentRecord: BufferedRecord[InternalRow], newRecord: BufferedRecord[InternalRow]): BufferedRecord[InternalRow] = {
+    if (!isPartialMergeEnabled && keyBasedFileGroupRecordBuffer.isPresent && keyBasedFileGroupRecordBuffer.get().isPartialMergingEnabled) {

Review Comment:
   is it possible to process multiple log files in this iterator? If so, what happens if the next log file does not have partial encodings for the updates?



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3179773668

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716",
       "triggerID" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "triggerType" : "PUSH"
     }, {
       "hash" : "52194301b3d81d7ad519d852831af78a4642aefe",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7746",
       "triggerID" : "52194301b3d81d7ad519d852831af78a4642aefe",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * 52194301b3d81d7ad519d852831af78a4642aefe Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7746) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169118581

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 69f7bc373accee6f045095f2b4afa4d61ffa8702 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649) 
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * e559c7dfafd475dc10520f1b78099587fbdf8810 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169090694

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3 Azure: [FAILURE](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643) 
   * 69f7bc373accee6f045095f2b4afa4d61ffa8702 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649) 
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169094140

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "CANCELED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 69f7bc373accee6f045095f2b4afa4d61ffa8702 Azure: [CANCELED](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649) 
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3169397872

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * e559c7dfafd475dc10520f1b78099587fbdf8810 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2264040827


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -540,15 +551,24 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
     convertToUTF8String(HoodieCDCUtils.recordToJson(record))
   }
 
-  private def merge(currentRecord: InternalRow, newRecord: InternalRow): ImmutablePair[HoodieSparkRecord, Schema] = {
-    recordMerger.merge(new HoodieSparkRecord(currentRecord, structTypeSchema), avroSchema,
-      new HoodieSparkRecord(newRecord, structTypeSchema), avroSchema, props)
-      .get().asInstanceOf[ImmutablePair[HoodieSparkRecord, Schema]]
+  private def merge(currentRecord: BufferedRecord[InternalRow], newRecord: BufferedRecord[InternalRow]): BufferedRecord[InternalRow] = {
+    if (!isPartialMergeEnabled && keyBasedFileGroupRecordBuffer.isPresent && keyBasedFileGroupRecordBuffer.get().isPartialMergingEnabled) {

Review Comment:
   looking at the key based buffer:
   ```
       if (dataBlock.containsPartialUpdates() && !enablePartialMerging) {
         // When a data block contains partial updates, subsequent record merging must always use
         // partial merging.
         enablePartialMerging = true;
         bufferedRecordMerger = BufferedRecordMergerFactory.create(
             readerContext,
             recordMergeMode,
             true,
             recordMerger,
             orderingFieldNames,
             payloadClass,
             readerSchema,
             props,
             partialUpdateMode);
       }
   ```
   once you have partial updates, you never disable the flag



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "hudi-bot (via GitHub)" <gi...@apache.org>.
hudi-bot commented on PR #13694:
URL: https://github.com/apache/hudi/pull/13694#issuecomment-3175401532

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7615",
       "triggerID" : "19020c4cc6be17b41607b87169734df3411fe03a",
       "triggerType" : "PUSH"
     }, {
       "hash" : "54d551c03a09145a4266d618229ebae489680ab6",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7619",
       "triggerID" : "54d551c03a09145a4266d618229ebae489680ab6",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7643",
       "triggerID" : "e3df1b7d002eeafb4bc802dc12cd5a3939bd0ce3",
       "triggerType" : "PUSH"
     }, {
       "hash" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7649",
       "triggerID" : "69f7bc373accee6f045095f2b4afa4d61ffa8702",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0d8df9309e587d7185b3b4595132b87bf1d080c9",
       "triggerType" : "PUSH"
     }, {
       "hash" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651",
       "triggerID" : "e559c7dfafd475dc10520f1b78099587fbdf8810",
       "triggerType" : "PUSH"
     }, {
       "hash" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716",
       "triggerID" : "c3dddb3df9c43b3c1830fe134c9b12401fa548f1",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0d8df9309e587d7185b3b4595132b87bf1d080c9 UNKNOWN
   * e559c7dfafd475dc10520f1b78099587fbdf8810 Azure: [SUCCESS](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7651) 
   * c3dddb3df9c43b3c1830fe134c9b12401fa548f1 Azure: [PENDING](https://dev.azure.com/apachehudi/a1a51da7-8592-47d4-88dc-fd67bed336bb/_build/results?buildId=7716) 
   
   <details>
   <summary>Bot commands</summary>
     @hudi-bot supports the following commands:
   
    - `@hudi-bot run azure` re-run the last Azure build
   </details>


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [HUDI-9695] Use BufferedRecordMerger for spark cdc reader [hudi]

Posted by "jonvex (via GitHub)" <gi...@apache.org>.
jonvex commented on code in PR #13694:
URL: https://github.com/apache/hudi/pull/13694#discussion_r2267135711


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/cdc/CDCFileGroupIterator.scala:
##########
@@ -516,17 +525,19 @@ class CDCFileGroupIterator(split: HoodieCDCFileGroupSplit,
       .withBufferSize(HoodieMetadataConfig.MAX_READER_BUFFER_SIZE_PROP.defaultValue)
       .withPartition(partitionPath)
       .withMetaClient(metaClient)
-      .withRecordBuffer(recordBuffer)
+      .withRecordBuffer(keyBasedFileGroupRecordBuffer.get())
       .build
 
-    CloseableIteratorListener.addListener(recordBuffer.getLogRecordIterator).asScala
+    CloseableIteratorListener.addListener(keyBasedFileGroupRecordBuffer.get().getLogRecordIterator).asScala
   }
 
   /**
    * Convert InternalRow to json string.
    */
-  private def convertRowToJsonString(record: InternalRow): UTF8String = {
-    internalRowToJsonStringConverter.convert(record)
+  private def convertBufferedRecordToJsonString(record: BufferedRecord[InternalRow]): UTF8String = {
+    internalRowToJsonStringConverterMap.getOrElseUpdate(record.getSchemaId,
+      new InternalRowToJsonStringConverter(HoodieInternalRowUtils.getCachedSchema(readerContext.getRecordContext.decodeAvroSchema(record.getSchemaId))))

Review Comment:
   https://www.scala-lang.org/api/2.12.15/scala/collection/mutable/Map.html#getOrElseUpdate(key:K,op:=%3EV):V
   It's a by name parameter
   https://docs.scala-lang.org/tour/by-name-parameters.html
   which allegedly won't evaluate, but idk if I trust it



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org