Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
8 changed files
with
197 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ pub mod logicalplan; | |
pub mod optimizer; | ||
pub mod sql; | ||
pub mod table; | ||
pub mod utils; | ||
|
||
#[cfg(test)] | ||
pub mod test; |
Oops, something went wrong.