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
- Get the schema for the aggregate_test_* csv files with an additional filed not present in the 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.
- Creates a test_context with table name
annotated_data
which has 100 rows. - Creates a test_context with table name
annotated_data
, which has 100 rows. - Returns the parquet test data directory, which is by default stored in a git submodule rooted at
parquet-testing/data
. - 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.