Skip to content

feat: Add ProgressiveEval operator #10490

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 4 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
10 changes: 10 additions & 0 deletions datafusion/common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,16 @@ config_namespace! {

/// When set to true, the optimizer will not attempt to convert Union to Interleave
pub prefer_existing_union: bool, default = false


/// Number of input streams to prefetch for ProgressiveEvalExec
/// Since ProgressiveEvalExec only polls one stream at a time in their stream order,
/// we do not need to prefetch all streams at once to save resources. However, if the
/// streams' IO time is way more than their CPU/procesing time, prefetching them will help
/// improve the performance.
/// Default is 2 which means we will prefetch one extra stream before polling the current one.
/// Increasing this value if IO time to read a stream is often much more than CPU time to process its previous one.
pub progressive_eval_num_prefetch_input_streams: usize, default = 2
}
}

Expand Down
1 change: 1 addition & 0 deletions datafusion/physical-plan/src/sorts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mod cursor;
mod index;
mod merge;
pub mod partial_sort;
pub mod progressive_eval;
pub mod sort;
pub mod sort_preserving_merge;
mod stream;
Expand Down
Loading