Macro datafusion_common::assert_batches_eq

source ยท
macro_rules! assert_batches_eq {
    ($EXPECTED_LINES: expr, $CHUNKS: expr) => { ... };
}
Expand description

Compares formatted output of a record batch with an expected vector of strings, with the result of pretty formatting record batches. This is a macro so errors appear on the correct line

Designed so that failure output can be directly copy/pasted into the test code as expected results.

Expects to be called about like this:

assert_batch_eq!(expected_lines: &[&str], batches: &[RecordBatch])