You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2022/05/16 17:38:37 UTC

[arrow-rs] branch master updated: offsets are always integers (#1702)

This is an automated email from the ASF dual-hosted git repository.

alamb 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 3135a53e4 offsets are always integers (#1702)
3135a53e4 is described below

commit 3135a53e49fb3c1f7958afd4f7e1b27a45118026
Author: Remzi Yang <59...@users.noreply.github.com>
AuthorDate: Tue May 17 01:38:31 2022 +0800

    offsets are always integers (#1702)
    
    Signed-off-by: remzi <13...@gmail.com>
---
 arrow/src/array/array_list.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arrow/src/array/array_list.rs b/arrow/src/array/array_list.rs
index c3422245b..acd0cffba 100644
--- a/arrow/src/array/array_list.rs
+++ b/arrow/src/array/array_list.rs
@@ -18,7 +18,7 @@
 use std::any::Any;
 use std::fmt;
 
-use num::Num;
+use num::Integer;
 
 use super::{
     array::print_long_array, make_array, raw_pointer::RawPtrBox, Array, ArrayData,
@@ -31,7 +31,7 @@ use crate::{
 };
 
 /// trait declaring an offset size, relevant for i32 vs i64 array types.
-pub trait OffsetSizeTrait: ArrowNativeType + Num + Ord + std::ops::AddAssign {
+pub trait OffsetSizeTrait: ArrowNativeType + std::ops::AddAssign + Integer {
     const IS_LARGE: bool;
 }