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

Method scan

datafusion/core/tests/memory_limit/mod.rs:1155–1170  ·  view source on GitHub ↗
(
        &self,
        _state: &dyn Session,
        projection: Option<&Vec<usize>>,
        _filters: &[Expr],
        _limit: Option<usize>,
    )

Source from the content-addressed store, hash-verified

1153 }
1154
1155 async fn scan(
1156 &self,
1157 _state: &dyn Session,
1158 projection: Option<&Vec<usize>>,
1159 _filters: &[Expr],
1160 _limit: Option<usize>,
1161 ) -> Result<Arc<dyn ExecutionPlan>> {
1162 let mem_conf = MemorySourceConfig::try_new(
1163 &self.batches,
1164 self.schema(),
1165 projection.cloned(),
1166 )?
1167 .try_with_sort_information(self.sort_information.clone())?;
1168
1169 Ok(DataSourceExec::from_data_source(mem_conf))
1170 }
1171}

Calls 4

schemaMethod · 0.45
clonedMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected