Skip to content

Commit dfc90fd

Browse files
committed
test: not used test
1 parent cb24281 commit dfc90fd

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

arrow-data/src/transform/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ impl<'a> MutableArrayData<'a> {
668668
next_offset += dict_len;
669669
}
670670

671-
build_extend_dictionary(array, offset, 0.max(offset + dict_len - 1))
671+
build_extend_dictionary(array, offset, offset + dict_len)
672672
.ok_or(ArrowError::DictionaryKeyOverflowError)
673673
})
674674
.collect();
@@ -829,8 +829,9 @@ impl<'a> MutableArrayData<'a> {
829829
#[cfg(test)]
830830
mod test {
831831
use super::*;
832+
use arrow_buffer::BufferBuilder;
832833
use arrow_schema::Field;
833-
use std::sync::Arc;
834+
use std::{iter::repeat, sync::Arc};
834835

835836
#[test]
836837
fn test_list_append_with_capacities() {

arrow-select/src/interleave.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,6 @@ mod tests {
808808
use std::iter::repeat;
809809
use std::sync::Arc;
810810

811-
use crate::concat::concat;
812-
813811
use super::*;
814812
use arrow_array::Int32RunArray;
815813
use arrow_array::builder::{Int32Builder, ListBuilder, PrimitiveRunBuilder};
@@ -2016,23 +2014,4 @@ mod tests {
20162014
&[Some(1), Some(0), Some(6), None, Some(5), Some(4)]
20172015
);
20182016
}
2019-
2020-
#[test]
2021-
fn test_uint8_dictionary_overflow_with_256_items() {
2022-
let dict_arr = {
2023-
let input_1_keys = UInt8Array::from_iter_values(0..=255);
2024-
let input_1_values = UInt8Array::from_iter_values(0..=255);
2025-
let input_1 = DictionaryArray::new(input_1_keys, Arc::new(input_1_values));
2026-
input_1
2027-
};
2028-
2029-
let arr1 = Arc::new(dict_arr) as ArrayRef;
2030-
let arr2 = arr1.clone();
2031-
2032-
let new = concat(&[&arr1, &arr2]).unwrap();
2033-
let data = new.into_data();
2034-
println!("{:?}", data);
2035-
2036-
// interleave(&[&arr1, &arr2], &[(0, 2), (0, 1), (1, 0), (1, 2), (1, 1)]).unwrap();
2037-
}
20382017
}

0 commit comments

Comments
 (0)