alamb commented on code in PR #2568:
URL: https://github.com/apache/arrow-datafusion/pull/2568#discussion_r875916573
##########
datafusion/core/src/test_util.rs:
##########
@@ -232,6 +235,17 @@ fn get_data_dir(udf_env: &str, submodule_data: &str) ->
Result<PathBuf, Box<dyn
}
}
+/// Scan an empty data source, mainly used in tests
+pub fn scan_empty(
+ name: Option<&str>,
+ table_schema: &Schema,
+ projection: Option<Vec<usize>>,
+) -> Result<LogicalPlanBuilder, DataFusionError> {
+ let table_schema = Arc::new(table_schema.clone());
+ let provider = Arc::new(EmptyTable::new(table_schema));
Review Comment:
TIL: `EmptyTable`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]