Scan an empty data source, mainly used in tests
(
name: Option<&str>,
table_schema: &Schema,
projection: Option<Vec<usize>>,
)
| 64 | |
| 65 | /// Scan an empty data source, mainly used in tests |
| 66 | pub fn scan_empty( |
| 67 | name: Option<&str>, |
| 68 | table_schema: &Schema, |
| 69 | projection: Option<Vec<usize>>, |
| 70 | ) -> Result<LogicalPlanBuilder> { |
| 71 | let table_schema = Arc::new(table_schema.clone()); |
| 72 | let provider = Arc::new(EmptyTable::new(table_schema)); |
| 73 | let name = TableReference::bare(name.unwrap_or(UNNAMED_TABLE)); |
| 74 | LogicalPlanBuilder::scan(name, provider_as_source(provider), projection) |
| 75 | } |
| 76 | |
| 77 | /// Scan an empty data source with configured partition, mainly used in tests. |
| 78 | pub fn scan_empty_with_partitions( |
searching dependent graphs…