Skip to content

Commit

Permalink
Handle validity
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Aug 7, 2023
1 parent eaddf25 commit 304e01d
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 66 deletions.
2 changes: 1 addition & 1 deletion crates/re_types/source_hash.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions crates/re_types/src/components/label.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions crates/re_types/src/datatypes/annotation_info.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 24 additions & 20 deletions crates/re_types/src/testing/components/fuzzy.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions crates/re_types/src/testing/components/fuzzy_deps.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 25 additions & 22 deletions crates/re_types/src/testing/datatypes/fuzzy.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions crates/re_types_builder/src/codegen/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2319,11 +2319,11 @@ fn quote_arrow_field_deserializer(
{
let downcast = #data_src.as_any().downcast_ref::<Utf8Array<i32>>().unwrap();
let offsets = downcast.offsets();

offsets
.iter()
.zip(offsets.lengths())
.map(|(o, l)| Some(downcast.values().clone().sliced(*o as _, l)))
arrow2::bitmap::utils::ZipValidity::new_with_validity(
offsets.iter().zip(offsets.lengths()),
downcast.validity(),
)
.map(|elem| elem.map(|(o, l)| downcast.values().clone().sliced(*o as _, l)))
#quoted_transparent_unmapping
}
}
Expand Down

0 comments on commit 304e01d

Please sign in to comment.