Skip to content

Improve ability to cancel queries quickly #16301

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions datafusion/common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ config_namespace! {
/// written, it may be necessary to increase this size to avoid errors from
/// the remote end point.
pub objectstore_writer_buffer_size: usize, default = 10 * 1024 * 1024

/// The maximum number of times pipeline breaking operators may poll
/// their children in a loop before yielding. Setting this to a value
/// greater than zero ensures running queries can be cancelled in a
/// timely fashion.
pub poll_budget: Option<u8>, default = Some(128)
}
}

Expand Down
1 change: 1 addition & 0 deletions datafusion/core/tests/execution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
// under the License.

mod logical_plan;
mod yielding;
Loading