Struct datafusion_common::config::AggregateOptions
source · #[non_exhaustive]pub struct AggregateOptions {
pub scalar_update_factor: usize,
}
Expand description
Options related to aggregate execution
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.scalar_update_factor: usize
Specifies the threshold for using ScalarValue
s to update
accumulators during high-cardinality aggregations for each input batch.
The aggregation is considered high-cardinality if the number of affected groups
is greater than or equal to batch_size / scalar_update_factor
. In such cases,
ScalarValue
s are utilized for updating accumulators, rather than the default
batch-slice approach. This can lead to performance improvements.
By adjusting the scalar_update_factor
, you can balance the trade-off between
more efficient accumulator updates and the number of groups affected.
Trait Implementations§
source§impl Clone for AggregateOptions
impl Clone for AggregateOptions
source§fn clone(&self) -> AggregateOptions
fn clone(&self) -> AggregateOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AggregateOptions
impl Debug for AggregateOptions
Auto Trait Implementations§
impl RefUnwindSafe for AggregateOptions
impl Send for AggregateOptions
impl Sync for AggregateOptions
impl Unpin for AggregateOptions
impl UnwindSafe for AggregateOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more