This folder contains test data for the [substrait] crate.
The substrait crate is at an init stage and many functions not implemented yet. Compared to the parquet-testing submodule, this folder contains only simple test data evolving around the substrait producers and consumers for logical plans and physical plans.
empty.csv: An empty CSV file.
empty.parquet: An empty Parquet file with metadata only.
data.csv: A simple CSV file with 6 columns and 2 rows.
data.parquet: A simple Parquet generated from the CSV file using pandas, e.g.,
import pandas as pd df = pandas.read_csv('data.csv') df.to_parquet('data.parquet')
To add a new test data, create a new file in this folder, reference it in the test source file, e.g.,
let ctx = SessionContext::new(); let explicit_options = ParquetReadOptions::default(); ctx.register_parquet("data", "tests/testdata/data.parquet", explicit_options)