You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by tu...@apache.org on 2022/10/27 01:37:58 UTC
[arrow-rs] branch master updated: Remove NativeDecimalType (#2945)
This is an automated email from the ASF dual-hosted git repository.
tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new afa8e27ce Remove NativeDecimalType (#2945)
afa8e27ce is described below
commit afa8e27ce3aac2720a7684522d84b30811e61c4c
Author: Raphael Taylor-Davies <17...@users.noreply.github.com>
AuthorDate: Thu Oct 27 14:37:53 2022 +1300
Remove NativeDecimalType (#2945)
---
arrow-array/src/types.rs | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/arrow-array/src/types.rs b/arrow-array/src/types.rs
index 70c43a2a4..edf6d40f3 100644
--- a/arrow-array/src/types.rs
+++ b/arrow-array/src/types.rs
@@ -472,17 +472,6 @@ mod private {
impl DecimalTypeSealed for Decimal256Type {}
}
-/// Trait representing the in-memory layout of a decimal type
-pub trait NativeDecimalType: Send + Sync + Copy + AsRef<[u8]> {
- fn from_slice(slice: &[u8]) -> Self;
-}
-
-impl<const N: usize> NativeDecimalType for [u8; N] {
- fn from_slice(slice: &[u8]) -> Self {
- slice.try_into().unwrap()
- }
-}
-
/// A trait over the decimal types, used by [`DecimalArray`] to provide a generic
/// implementation across the various decimal types
///