Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-raillard-arm committed Nov 9, 2023
1 parent 0552231 commit 61e5db7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tools/analysis/trace-tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ traceevent = { path = "../traceevent" }
thiserror = "1.0"
smartstring = "1.0"
arrow2 = { version = "0.18.0", features = ["io_parquet", "io_parquet_compression"] }
polars-arrow = { version = "0.34", features = ["io_parquet", "io_parquet_compression"] }
polars-error = "0.34"
crossbeam = "0.8"

[target.'cfg(target_arch = "x86_64")'.dependencies]
Expand Down
9 changes: 6 additions & 3 deletions tools/analysis/trace-tools/src/lib/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ use std::{
sync::Arc,
};

use arrow2::{
// use arrow2::error::Error as ArrowError;
// use arrow2::{
use polars_arrow::{
array::MutablePrimitiveArray,
// TODO: remove wildcard import
array::*,
Expand All @@ -21,8 +23,9 @@ use arrow2::{
datatypes::{DataType, Field, Schema},
// TODO: remove wildcard import
io::parquet::write::*,
error::Error as ArrowError,
};
use polars_error::PolarsError as ArrowError;

use crossbeam::{
channel::{bounded, Sender},
thread::{scope, Scope, ScopedJoinHandle},
Expand Down Expand Up @@ -602,7 +605,7 @@ impl EventWriteState {
}
}

fn main2() -> Result<(), arrow2::error::Error> {
fn main2() -> Result<(), ArrowError> {
// declare arrays
let a = Int8Array::from(&[Some(1), None, Some(3)]);
let b = Int32Array::from(&[Some(2), None, Some(6)]);
Expand Down

0 comments on commit 61e5db7

Please sign in to comment.