You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "jianguotian (via GitHub)" <gi...@apache.org> on 2026/09/21 09:34:17 UTC
[PR] fix(python): handle partial stream writes [paimon-mosaic]
jianguotian opened a new pull request, #94:
URL: https://github.com/apache/paimon-mosaic/pull/94
## Purpose
The Python writer callback treated every `stream.write()` call as a complete write. File-like objects are allowed to return a smaller positive byte count, `0`, or `None`, so the adapter could report success after writing only part of a Mosaic file.
## Changes
- retry positive partial writes until the full callback buffer is written;
- fail on `0`, `None`, invalid, or oversized write results;
- advance the logical position only after the complete buffer is written;
- cover full writes, repeated short writes, and stalled writes.
## Validation
- Python test suite: 64 passed
- Rust interop fixtures: 7 passed
- Python `compileall`: passed
- real nonblocking `io.FileIO` pipe: partial output now returns an explicit write failure instead of success
- `git diff --check`: 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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(python): handle partial stream writes [paimon-mosaic]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #94:
URL: https://github.com/apache/paimon-mosaic/pull/94
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org