Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor: Add documentation about stream cancellation #8747

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 4, 2024

Which issue does this PR close?

N/A

Rationale for this change

While discussing #8739 the behavior of stream cancellation and how to abort execution were not clear (see #8739 (comment))

It would be good to document what has been until now an implicit assumption

What changes are included in this PR?

Add documentation explaining the expecations on the stream returned from ExecutionPlan::execute as well as add explicit documentation on how to cancel the result of calling execute_stream and similar methods ("drop the stream").

Are these changes tested?

Via doctests

Are there any user-facing changes?

@alamb alamb marked this pull request as ready for review January 4, 2024 14:00
@alamb alamb added the documentation Improvements or additions to documentation label Jan 4, 2024
@github-actions github-actions bot added core Core datafusion crate and removed documentation Improvements or additions to documentation labels Jan 4, 2024
@alamb alamb added the documentation Improvements or additions to documentation label Jan 4, 2024
@berkaysynnada
Copy link
Contributor

Thanks @alamb. You have clearly detailed the related areas.

@alamb alamb requested a review from crepererum January 4, 2024 17:52
Copy link
Contributor

@ozankabak ozankabak left a comment

Choose a reason for hiding this comment

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

Thank you

@alamb alamb merged commit 0208755 into apache:main Jan 5, 2024
23 checks passed
@alamb alamb deleted the alamb/cancel_safe branch January 5, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core datafusion crate documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants