Skip to content

Commit

Permalink
Encoding ID
Browse files Browse the repository at this point in the history
  • Loading branch information
gatesn committed Mar 22, 2024
1 parent eca9c20 commit 5b922b0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vortex-alp/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl ALPArray {
pub fn encode(array: &dyn Array) -> VortexResult<ArrayRef> {
match ArrayKind::from(array) {
ArrayKind::Primitive(p) => Ok(alp_encode(p)?.into_array()),
_ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())),
_ => Err(VortexError::InvalidEncoding(array.encoding().id())),
}
}

Expand Down
2 changes: 1 addition & 1 deletion vortex-ree/src/ree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl REEArray {
)
.into_array())
}
_ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())),
_ => Err(VortexError::InvalidEncoding(array.encoding().id())),
}
}

Expand Down
2 changes: 1 addition & 1 deletion vortex-roaring/src/boolean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl RoaringBoolArray {
pub fn encode(array: &dyn Array) -> VortexResult<Self> {
match ArrayKind::from(array) {
ArrayKind::Bool(p) => Ok(roaring_encode(p)),
_ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())),
_ => Err(VortexError::InvalidEncoding(array.encoding().id())),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion vortex-roaring/src/integer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl RoaringIntArray {
pub fn encode(array: &dyn Array) -> VortexResult<Self> {
match ArrayKind::from(array) {
ArrayKind::Primitive(p) => Ok(roaring_encode(p)),
_ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())),
_ => Err(VortexError::InvalidEncoding(array.encoding().id())),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion vortex-zigzag/src/zigzag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl ZigZagArray {
pub fn encode(array: &dyn Array) -> VortexResult<ArrayRef> {
match ArrayKind::from(array) {
ArrayKind::Primitive(p) => Ok(zigzag_encode(p)?.into_array()),
_ => Err(VortexError::InvalidEncoding(array.encoding().id().clone())),
_ => Err(VortexError::InvalidEncoding(array.encoding().id())),
}
}

Expand Down

0 comments on commit 5b922b0

Please sign in to comment.