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 9bbb42f commit 1dd13ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arrow/src/array/array_decimal.rs
Expand Up @@ -350,6 +350,12 @@ impl From<DecimalArray> for ArrayData {
}
}

impl From<Decimal256Array> for ArrayData {
fn from(array: Decimal256Array) -> Self {
array.data
}
}

impl<'a> IntoIterator for &'a DecimalArray {
type Item = Option<i128>;
type IntoIter = DecimalIter<'a>;
Expand Down Expand Up @@ -452,6 +458,10 @@ impl Array for Decimal256Array {
fn data(&self) -> &ArrayData {
&self.data
}

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

#[cfg(test)]
Expand Down

0 comments on commit 1dd13ea

Please sign in to comment.