Skip to content

ARROW-12160: [Rust] Add into_inner() to StreamWriter#9858

Closed
ericwburden wants to merge 2 commits intoapache:masterfrom
ericwburden:into-inner-fn-for-stream-writer
Closed

ARROW-12160: [Rust] Add into_inner() to StreamWriter#9858
ericwburden wants to merge 2 commits intoapache:masterfrom
ericwburden:into-inner-fn-for-stream-writer

Conversation

@ericwburden
Copy link
Copy Markdown
Contributor

Add an into_inner() method to ipc::writer::StreamWriter, allowing users to recover the underlying writer, consuming the StreamWriter. Essentially exposes into_inner() from the BufWriter contained in the StreamWriter. The StreamWriter will 'finish' itself if not already finished when returning the writer.

Also added ArrowError::From<std::io::IntoInnerError> conversion to allow for ergonomic return of the potential IntoInnerError returned by BufWriter.into_inner().

@github-actions
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. 👍

cc @nevi-me

@alamb
Copy link
Copy Markdown
Contributor

alamb commented Mar 31, 2021

Thank you @ericwburden

Copy link
Copy Markdown
Contributor

@nevi-me nevi-me left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @ericwburden

@nevi-me
Copy link
Copy Markdown
Contributor

nevi-me commented Mar 31, 2021

@alamb we can merge after the clippy and Debian 10 CI tasks complete

@alamb alamb closed this in 1757ba2 Apr 1, 2021
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Apr 1, 2021

Thanks again @ericwburden -- this is really helpful. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants