Module datafusion::test_util
source · Expand description
Utility functions to make testing DataFusion based crates easier
Modules§
- Helpers for writing parquet files and reading them back
Structs§
- TableFactory for tests
- TableProvider for testing purposes
- A mock execution plan that simply returns the provided data source characteristic
Functions§
- Get the schema for the aggregate_test_* csv files
- Returns the arrow test data directory, which is by default stored in a git submodule rooted at
testing/data
. - Returns a directory path for finding test data.
- Returns the parquet test data directory, which is by default stored in a git submodule rooted at
parquet-testing/data
. - Execute SQL and return results
- Generate CSV partitions within the supplied directory
- Register session context for the aggregate_test_100.csv file
- This function creates an unbounded sorted file for testing purposes.
- Scan an empty data source, mainly used in tests
- Scan an empty data source with configured partition, mainly used in tests.
- Create a table from the aggregate_test_100.csv file with the name “aggregate_test_100”
- Create a table from the aggregate_test_100.csv file with the specified name