Apache DataFusion SQL Query Engine
Remove unnecessary api from MemTable (#6861)
Metehan Yıldırımf26c540d09cb
diff --git a/datafusion/core/src/datasource/memory.rs b/datafusion/core/src/datasource/memory.rsindex 5398bb0903..967eb988eb 100644--- a/datafusion/core/src/datasource/memory.rs+++ b/datafusion/core/src/datasource/memory.rs@@ -169,8 +169,8 @@ impl TableProvider for MemTable {let inner_vec = arc_inner_vec.read().await;partitions.push(inner_vec.clone())}- Ok(Arc::new(MemoryExec::try_new_owned_data(- partitions,+ Ok(Arc::new(MemoryExec::try_new(+ &partitions,self.schema(),projection.cloned(),)?))diff --git a/datafusion/core/src/physical_plan/memory.rs b/datafusion/core/src/physical_plan/memory.rsindex 16c22a3b2d..0601d6fc94 100644--- a/datafusion/core/src/physical_plan/memory.rs+++ b/datafusion/core/src/physical_plan/memory.rs@@ -151,23 +151,6 @@ impl MemoryExec {})}- /// Create a new execution plan for reading in-memory record batches- /// The provided `schema` should not have the projection applied.- pub fn try_new_owned_data(- partitions: Vec<Vec<RecordBatch>>,- schema: SchemaRef,- projection: Option<Vec<usize>>,- ) -> Result<Self> {- let projected_schema = project_schema(&schema, projection.as_ref())?;- Ok(Self {- partitions,- schema,- projected_schema,- projection,- sort_information: None,- })- }-/// Set sort informationpub fn with_sort_information(mut self,