QuakeWang commented on PR #7598: URL: https://github.com/apache/paimon/pull/7598#issuecomment-4252303166
> Can you explain what went wrong? The old dedicated-format `writeBundle` path was still functionally fine in the simple row-by-row fallback, but it dropped bundle semantics completely by iterating the bundle and calling `write(row)`. That becomes problematic in the dedicated fan-out path, where one logical bundle has to be written to projected main/blob/vector writers. `BundleRecords` itself does not guarantee replayability, so the same bundle cannot be safely reused across multiple child writers. At the same time, if we forward the bundle directly to restore pass-through, we can bypass row-level side effects in `RowDataFileWriter`, such as sequence-number updates and main-file index writing. We also lose typed / bundle-aware fast paths such as `ArrowBundleRecords`. This patch makes those constraints explicit: replayable bundles can be passed through safely, non-replayable bundles are materialized once, and dedicated row-data writers preserve the row-level side effects after bundle writes. So the issue was not that the old row-by-row fallback always corrupted data. The issue was that the dedicated-format bundle path could not preserve bundle semantics safely and correctly once a single bundle needed to be fanned out to multiple writers. -- 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]
