Skip to content

Commit

Permalink
update: comment in code
Browse files Browse the repository at this point in the history
  • Loading branch information
YannByron committed Sep 30, 2022
1 parent 573c27a commit be8c12e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,8 @@ class HoodieCDCRDD(
val iter = loadFileSlice(fileSlice)
iter.foreach { row =>
val key = getRecordKey(row)
// Due to the reuse buffer mechanism of Spark serialization,
// we have to copy the serialized result if we need to retain its reference
beforeImageRecords.put(key, serialize(row, copy = true))
}
// reset beforeImageFiles
Expand Down

0 comments on commit be8c12e

Please sign in to comment.