nsivabalan commented on issue #16997:
URL: https://github.com/apache/hudi/issues/16997#issuecomment-4800726315

   This appears to be already implemented on `master`. 
`HoodieSparkRecord#updateMetaField` 
([`HoodieSparkRecord.java:233`](https://github.com/apache/hudi/blob/master/hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/common/model/HoodieSparkRecord.java#L233))
 wraps the `InternalRow` in an updatable overlay and updates only the target 
ordinal — no extraction of all meta fields. The compaction/merge path uses it 
at 
[`HoodieWriteMergeHandle.java:416`](https://github.com/apache/hudi/blob/master/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieWriteMergeHandle.java#L416)
 to rewrite `FILENAME_META_FIELD` when preserving record metadata. Landed in 
commit f8219428f35d ([HUDI-8286] #13411). Closing as resolved seems reasonable 
— please reopen if a specific call site is still going through 
`prependMetaFields` unnecessarily.


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