Skip to content

Commit

Permalink
Rebased with master
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Jul 5, 2022
1 parent bb2aa82 commit 53525f8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions arrow/src/array/array_decimal.rs
Expand Up @@ -285,8 +285,10 @@ impl<T: BasicDecimal, const VALUE_LENGTH: i32> From<ArrayData>
}
}

impl From<DecimalArray> for ArrayData {
fn from(array: DecimalArray) -> Self {
impl<T: BasicDecimal + 'static, const VALUE_LENGTH: i32>
From<GenericDecimalArray<T, VALUE_LENGTH>> for ArrayData
{
fn from(array: GenericDecimalArray<T, VALUE_LENGTH>) -> Self {
array.data
}
}
Expand Down Expand Up @@ -373,6 +375,10 @@ impl<T: BasicDecimal + 'static, const VALUE_LENGTH: i32> Array
fn data(&self) -> &ArrayData {
&self.data
}

fn into_data(self) -> ArrayData {
self.into()
}
}

#[cfg(test)]
Expand Down

0 comments on commit 53525f8

Please sign in to comment.