Skip to content

Commit

Permalink
Merge pull request datafusion-contrib#33 from elbaro/patch-1
Browse files Browse the repository at this point in the history
Update Readme.md example code
  • Loading branch information
chmp committed Mar 28, 2023
2 parents 28f8279 + bfb7757 commit f5aefe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ let items = vec![
// detect the field types and convert the items to arrays
use serde_arrow::arrow2::{serialize_into_fields, serialize_into_arrays};

let fields = serialize_into_fields(&items)?;
let fields = serialize_into_fields(&items, TracingOptions::default())?;
let arrays = serialize_into_arrays(&fields, &items)?;

// using the helper method defined in the arrow2 guide at
// https://jorgecarleitao.github.io/arrow2/io/parquet_write.html
use arrow2::{chunk::Chunk, datatypes::Schema};
use arrow2::{chunk::Chunk, datatypes::Schema};

write_chunk(
"example.pq",
Schema::from(fields),
Chunk::new(items),
Chunk::new(arrays),
)?;

```
Expand Down

0 comments on commit f5aefe3

Please sign in to comment.