Skip to content
Draft
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
9 changes: 9 additions & 0 deletions datafusion/common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,15 @@ config_namespace! {
/// branches share the same source and compatible wrapper nodes such as identical
/// projections or aliases.
pub enable_unions_to_filter: bool, default = false

/// When set to true, the logical optimizer will fuse multiple uncorrelated
/// scalar-aggregate subqueries that read from the same source into a single
/// aggregate, pushing each subquery's predicate into a `FILTER (WHERE ...)`
/// clause. This avoids scanning the shared source once per subquery. The
/// rewrite is conservative: it only applies to uncorrelated scalar aggregates
/// over an identical source and skips `DISTINCT`, ordered, or volatile
/// aggregates.
pub enable_fuse_scalar_subqueries: bool, default = false
}
}

Expand Down
Loading
Loading