MCPcopy Create free account
hub / github.com/apache/datafusion / with_expr_adapter

Method with_expr_adapter

datafusion/datasource/src/file_scan_config/mod.rs:485–491  ·  view source on GitHub ↗

Register an expression adapter used to adapt filters and projections that are pushed down into the scan from the logical schema to the physical schema of the file. This can include things like: - Column ordering changes - Handling of missing columns - Rewriting expression to use pre-computed values or file format specific optimizations

(
        mut self,
        expr_adapter: Option<Arc<dyn PhysicalExprAdapterFactory>>,
    )

Source from the content-addressed store, hash-verified

483 /// - Handling of missing columns
484 /// - Rewriting expression to use pre-computed values or file format specific optimizations
485 pub fn with_expr_adapter(
486 mut self,
487 expr_adapter: Option<Arc<dyn PhysicalExprAdapterFactory>>,
488 ) -> Self {
489 self.expr_adapter_factory = expr_adapter;
490 self
491 }
492
493 /// Set whether file groups are organized by partition column values.
494 ///

Callers 4

inject_adapter_into_planFunction · 0.80
scanMethod · 0.80
scan_with_argsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected