Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
datafusion::physical_plan::test - Rust
[go: Go Back, main page]

Module test

Source
Expand description

Utilities for testing datafusion-physical-plan

Modules§

exec
Simple iterator over batches for use in testing

Structs§

TestMemoryExec
TestMemoryExec is a mock equivalent to MemorySourceConfig with ExecutionPlan implemented for testing. i.e. It has some but not all the functionality of MemorySourceConfig. This implements an in-memory DataSource rather than explicitly implementing a trait. It is implemented in this manner to keep relevant unit tests in place while avoiding circular dependencies between datafusion-physical-plan and datafusion-datasource.
TestPartitionStream

Functions§

aggr_test_schema
Get the schema for the aggregate_test_* csv files
assert_is_pending
Asserts that given future is pending.
build_table_i32
Returns record batch with 3 columns of i32 in memory
build_table_i32_two_cols
Returns record batch with 2 columns of i32 in memory
build_table_scan_i32
Returns memory table scan wrapped around record batch with 3 columns of i32
make_partition
Return a RecordBatch with a single Int32 array with values (0..sz) in a field named “i”
make_partition_utf8
mem_exec
Returns a DataSourceExec that scans partitions of 100 batches each
mem_exec_utf8
scan_partitioned
Returns a DataSourceExec that scans partitions of 100 batches each
scan_partitioned_utf8