Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-raillard-arm committed Dec 29, 2023
1 parent 1085053 commit 958ce94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/analysis/trace-tools/src/lib/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -681,16 +681,18 @@ where
match buf {
Value::U32Array(array) => {
let table_state = $table_state;
let mut table_state = RefCell::borrow_mut(table_state);
let mut _table_state = table_state.deref_mut();

let res = visitor
.vbin_fields(print_fmt, &array)
.zip(RefCell::borrow_mut(table_state).field_cols.iter_mut())
.zip(_table_state.field_cols.iter_mut())
.map(|(res, col)| {
f(&table_state.borrow().name, col, res.map(|print_arg| print_arg.value))
f(&_table_state.name, col, res.map(|print_arg| print_arg.value))
})
.collect::<Result<(), MainError>>();
match res {
Ok(_) => Ok(DerefMutWrapper::RcRefMut(RefCell::borrow_mut(table_state))),
Ok(_) => Ok(DerefMutWrapper::RcRefMut(table_state)),
Err(err) => Err(err)
}
}
Expand Down

0 comments on commit 958ce94

Please sign in to comment.