Skip to content

Commit

Permalink
feat: add bigint extraction from decimal (apache#2301)
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Telnov <f.telnov@picodata.io>
  • Loading branch information
ftelnov and ftelnov committed Jun 21, 2023
1 parent 5297b9f commit d02241e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lang/rust/avro/src/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ impl Decimal {
}
}

impl From<Decimal> for BigInt {
fn from(decimal: Decimal) -> Self {
decimal.value
}
}

/// Gets the internal byte array representation of a referenced decimal.
/// Usage:
/// ```
Expand Down

0 comments on commit d02241e

Please sign in to comment.