Skip to content

Commit 8e76389

Browse files
committed
format
Signed-off-by: Robert Kruszewski <github@robertk.io>
1 parent efef4fc commit 8e76389

2 files changed

Lines changed: 28 additions & 27 deletions

File tree

encodings/fsst/src/array.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ use fsst::Compressor;
1212
use fsst::Decompressor;
1313
use fsst::Symbol;
1414
use prost::Message as _;
15-
use vortex_array::arrays::varbin::VarBinArrayExt;
16-
use vortex_array::arrays::VarBin;
17-
use vortex_array::arrays::VarBinArray;
18-
use vortex_array::buffer::BufferHandle;
19-
use vortex_array::builders::ArrayBuilder;
20-
use vortex_array::builders::VarBinViewBuilder;
21-
use vortex_array::dtype::DType;
22-
use vortex_array::dtype::Nullability;
23-
use vortex_array::dtype::PType;
24-
use vortex_array::serde::ArrayChildren;
25-
use vortex_array::validity::Validity;
26-
use vortex_array::vtable::child_to_validity;
27-
use vortex_array::vtable::validity_to_child;
28-
use vortex_array::vtable::VTable;
29-
use vortex_array::vtable::ValidityVTable;
3015
use vortex_array::Array;
3116
use vortex_array::ArrayEq;
3217
use vortex_array::ArrayHash;
@@ -38,20 +23,35 @@ use vortex_array::Canonical;
3823
use vortex_array::ExecutionCtx;
3924
use vortex_array::ExecutionResult;
4025
use vortex_array::IntoArray;
26+
use vortex_array::LEGACY_SESSION;
4127
use vortex_array::Precision;
4228
use vortex_array::TypedArrayRef;
4329
use vortex_array::VortexSessionExecute;
44-
use vortex_array::LEGACY_SESSION;
30+
use vortex_array::arrays::VarBin;
31+
use vortex_array::arrays::VarBinArray;
32+
use vortex_array::arrays::varbin::VarBinArrayExt;
33+
use vortex_array::buffer::BufferHandle;
34+
use vortex_array::builders::ArrayBuilder;
35+
use vortex_array::builders::VarBinViewBuilder;
36+
use vortex_array::dtype::DType;
37+
use vortex_array::dtype::Nullability;
38+
use vortex_array::dtype::PType;
39+
use vortex_array::serde::ArrayChildren;
40+
use vortex_array::validity::Validity;
41+
use vortex_array::vtable::VTable;
42+
use vortex_array::vtable::ValidityVTable;
43+
use vortex_array::vtable::child_to_validity;
44+
use vortex_array::vtable::validity_to_child;
4545
use vortex_buffer::Buffer;
4646
use vortex_buffer::ByteBuffer;
47+
use vortex_error::VortexExpect;
48+
use vortex_error::VortexResult;
4749
use vortex_error::vortex_bail;
4850
use vortex_error::vortex_ensure;
4951
use vortex_error::vortex_err;
5052
use vortex_error::vortex_panic;
51-
use vortex_error::VortexExpect;
52-
use vortex_error::VortexResult;
53-
use vortex_session::registry::CachedId;
5453
use vortex_session::VortexSession;
54+
use vortex_session::registry::CachedId;
5555

5656
use crate::canonical::canonicalize_fsst;
5757
use crate::canonical::fsst_decode_views;
@@ -756,24 +756,24 @@ mod test {
756756
use fsst::Compressor;
757757
use fsst::Symbol;
758758
use prost::Message;
759+
use vortex_array::ArrayPlugin;
760+
use vortex_array::IntoArray;
761+
use vortex_array::LEGACY_SESSION;
762+
use vortex_array::VortexSessionExecute;
759763
use vortex_array::accessor::ArrayAccessor;
760764
use vortex_array::arrays::VarBinViewArray;
761765
use vortex_array::buffer::BufferHandle;
762766
use vortex_array::dtype::DType;
763767
use vortex_array::dtype::Nullability;
764768
use vortex_array::dtype::PType;
765769
use vortex_array::test_harness::check_metadata;
766-
use vortex_array::ArrayPlugin;
767-
use vortex_array::IntoArray;
768-
use vortex_array::VortexSessionExecute;
769-
use vortex_array::LEGACY_SESSION;
770770
use vortex_buffer::Buffer;
771771
use vortex_error::VortexError;
772772

773+
use crate::FSST;
773774
use crate::array::FSSTArrayExt;
774775
use crate::array::FSSTMetadata;
775776
use crate::fsst_compress_iter;
776-
use crate::FSST;
777777

778778
#[cfg_attr(miri, ignore)]
779779
#[test]

vortex-array/src/arrays/bool/compute/cast.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ impl CastKernel for Bool {
4242
return Ok(None);
4343
}
4444

45-
let new_validity = array
46-
.validity()?
47-
.cast_nullability(dtype.nullability(), array.len(), ctx)?;
45+
let new_validity =
46+
array
47+
.validity()?
48+
.cast_nullability(dtype.nullability(), array.len(), ctx)?;
4849
Ok(Some(
4950
BoolArray::new(array.to_bit_buffer(), new_validity).into_array(),
5051
))

0 commit comments

Comments
 (0)