Skip to content

Commit 152d94d

Browse files
committed
style(db): test_crud_sql support batch display
1 parent 11401fe commit 152d94d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/db.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ mod test {
126126
use arrow::compute::concat_batches;
127127
use arrow::datatypes::Schema;
128128
use arrow::record_batch::RecordBatch;
129+
use arrow::util::pretty::print_batches;
129130
use itertools::Itertools;
130131
use crate::catalog::{ColumnCatalog, ColumnDesc};
131132
use crate::db::Database;
@@ -185,7 +186,7 @@ mod test {
185186
let table = database.storage
186187
.get_catalog()
187188
.get_table(0).unwrap().clone();
188-
println!("{:#?}", concat_batches(&table.schema(), &vec_batch));
189+
print_batches(&vec_batch)?;
189190

190191
Ok(())
191192
})

0 commit comments

Comments
 (0)