Module test_utils

Source

Structsยง

BlockExecutor
BusyLoopExecutor
FakeCreateSource ๐Ÿ”’
FakeExchangeSource
FakeInnerSideExecutorBuilder
MockExecutor
Mock the input of executor. You can bind one or more MockExecutor as the children of the executor to test, (HashAgg, e.g), so that allow testing without instantiating real SeqScans and real storage.

Constantsยง

SEED ๐Ÿ”’

Functionsยง

diff_executor_output
if the input from two child executor is same(considering order), it will also check the columns structure of chunks from child executor use for executor unit test.
gen_data
Generate batch_num data chunks with type data_types, each data chunk has cardinality of batch_size.
gen_projected_data
Generate batch_num data chunks with type Int64, each data chunk has cardinality of batch_size. Then project each data chunk with expr.
gen_sorted_data
Generate batch_num sorted data chunks with type Int64, each data chunk has cardinality of batch_size.
is_data_chunk_eq ๐Ÿ”’