Skip to main content

execute_adaptive

Function execute_adaptive 

Source
pub fn execute_adaptive(
    operator: Box<dyn Operator>,
    context: Option<AdaptiveContext>,
    config: Option<AdaptivePipelineConfig>,
) -> Result<(Vec<DataChunk>, Option<AdaptiveSummary>), OperatorError>
Expand description

Convenience function to execute a pull-based operator with adaptive tracking.

This is the recommended entry point for adaptive execution.

§Arguments

  • operator - The pull-based operator to execute
  • context - Adaptive context with cardinality estimates (or None for default)
  • config - Optional configuration (uses defaults if None)

§Returns

A tuple of (collected DataChunks, adaptive summary if tracking was enabled).