Commits

Andy Grove authored 7c7014b68ba
ARROW-8264: [Rust] [DataFusion] Add utility for printing batches This PR adds a utility for printing batches and updates the examples to call this code. This makes the examples more concise and the output more consistent. The code was previously in the CLI but is now in the new utils module. ``` $ cargo run --example csv_sql Compiling datafusion v1.0.0-SNAPSHOT (/home/andy/git/andygrove/arrow/rust/datafusion) Finished dev [unoptimized + debuginfo] target(s) in 4.16s Running `target/debug/examples/csv_sql` +----+----------------------+--------------------+ | c1 | MIN | MAX | +----+----------------------+--------------------+ | a | 0.02182578039211991 | 0.9567595541247681 | | e | 0.01479305307777301 | 0.9965400387585364 | | d | 0.061029375346466685 | 0.9748360509016578 | | c | 0.2667177795079635 | 0.991517828651004 | | b | 0.04893135681998029 | 0.9185813970744787 | +----+----------------------+--------------------+ ``` Closes #6754 from andygrove/datafusion-utils Authored-by: Andy Grove <andygrove73@gmail.com> Signed-off-by: Andy Grove <andygrove73@gmail.com>