Phoenix500526 opened a new pull request, #11967:
URL: https://github.com/apache/arrow-rs/pull/11967

   # Which issue does this PR close?
   
   Closes #11966.
   
   # Rationale for this change
   
   A schema-only IPC stream without an EOS marker is valid, but `StreamDecoder` 
consumes its metadata and exits before processing the schema. As a result, 
`schema()` remains `None` and `finish()` reports `Unexpected End of Stream`.
   
   # What changes are included in this PR?
   
   Allow the decode loop to continue with empty input when the current message 
has a zero-length body. This completes the pending message while preserving the 
wait for more input when a nonempty body is incomplete.
   
   # Are these changes tested?
   
   Added `test_schema_without_eos`, which writes a schema without an EOS marker 
and verifies that the schema is decoded and `finish()` succeeds. It fails on 
the original implementation and passes with this change. All six stream-decoder 
unit tests pass locally.
   
   # Are there any significant user-facing changes?
   
   No public API changes.
   
   AI assistance was used for diagnosis, the regression test, and the proposed 
loop-condition change.
   


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