You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "abdolence (via GitHub)" <gi...@apache.org> on 2024/04/13 14:00:09 UTC
[PR] Make public some arrow IPC stream options and methods [arrow-rs]
abdolence opened a new pull request, #5641:
URL: https://github.com/apache/arrow-rs/pull/5641
# Which issue does this PR close?
N/A
# Rationale for this change
Working on own async Apache IPC stream implementation I noticed that the exposed API is incomplete.
For example, `write_message` is a public, but `write_continuation` is not, so you can write all records, but not the marker to finish the stream.
Also, it is not possible to read externally any `IpcWriteOptions` provided which are useful in some scenarios.
# What changes are included in this PR?
Just making some fields and one method public.
# Are there any user-facing changes?
I don't think there is anything that need to be changed, let me know if there is.
<!---
If there are any breaking changes to public APIs, please add the `breaking change` label.
-->
No breaking changes for existing APIs.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Make public some arrow IPC stream options and methods [arrow-rs]
Posted by "abdolence (via GitHub)" <gi...@apache.org>.
abdolence commented on PR #5641:
URL: https://github.com/apache/arrow-rs/pull/5641#issuecomment-2057582792
> but I do wonder if you could just use StreamWriter instead
I don't think I can, since I don't have control of how many batches to expect (I have an input abstract Stream of them), so I do something like this:
```
batch_stream.chain(append_stream)
```
so I can't share StreamWriter between independent streams in this place (at least without creating my own primitives).
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Make public some arrow IPC stream options and methods [arrow-rs]
Posted by "tustvold (via GitHub)" <gi...@apache.org>.
tustvold commented on code in PR #5641:
URL: https://github.com/apache/arrow-rs/pull/5641#discussion_r1565630462
##########
arrow-ipc/src/writer.rs:
##########
@@ -1125,7 +1125,7 @@ fn write_body_buffers<W: Write>(
/// Write a record batch to the writer, writing the message size before the message
/// if the record batch is being written to a stream
-fn write_continuation<W: Write>(
+pub fn write_continuation<W: Write>(
Review Comment:
This is probably fine but I think the doc comment needs updating
##########
arrow-ipc/src/writer.rs:
##########
@@ -55,10 +55,10 @@ pub struct IpcWriteOptions {
///
/// version 2.0.0: V4, with legacy format enabled
/// version 4.0.0: V5
- metadata_version: crate::MetadataVersion,
+ pub metadata_version: crate::MetadataVersion,
/// Compression, if desired. Will result in a runtime error
/// if the corresponding feature is not enabled
- batch_compression_type: Option<crate::CompressionType>,
+ pub batch_compression_type: Option<crate::CompressionType>,
Review Comment:
We could potentially add accessors for these, but making them public would limit our ability to make non-breaking changes in future and so I don't think we can do this
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Make public some arrow IPC stream options and methods [arrow-rs]
Posted by "abdolence (via GitHub)" <gi...@apache.org>.
abdolence closed pull request #5641: Make public some arrow IPC stream options and methods
URL: https://github.com/apache/arrow-rs/pull/5641
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Make public some arrow IPC stream options and methods [arrow-rs]
Posted by "abdolence (via GitHub)" <gi...@apache.org>.
abdolence commented on PR #5641:
URL: https://github.com/apache/arrow-rs/pull/5641#issuecomment-2057741030
I don't have a need of this anymore myself since I implemented those functions myself. I was mostly hinting if this was forgotten. For me it is inconsistency. I'm going to close this PR since if you think it is better to open those functions/options, it is not a big change anyway.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org