We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42abf91 commit 37f91c7Copy full SHA for 37f91c7
examples/int32_decimal.parquet
478 Bytes
examples/parquet.rs
@@ -0,0 +1,16 @@
1
+extern crate duckdb;
2
+use duckdb::{Connection, Result};
3
+
4
+use arrow::record_batch::RecordBatch;
5
+use arrow::util::pretty::print_batches;
6
7
+fn main() -> Result<()> {
8
+ let db = Connection::open_in_memory()?;
9
+ db.execute_batch("INSTALL parquet; LOAD parquet;")?;
10
+ let rbs: Vec<RecordBatch> = db
11
+ .prepare("SELECT * FROM read_parquet('./examples/int32_decimal.parquet');")?
12
+ .query_arrow([])?
13
+ .collect();
14
+ assert!(print_batches(&rbs).is_ok());
15
+ Ok(())
16
+}
0 commit comments