arrow-ord 56.0.0
“Ordering kernels for arrow arrays”
Caret or XOR expression textRust test marker or harness
SHA-256425fa0b42a39d3ff55160832e7c25553e7f012c3f187def3d70313e7a29ba5d9
MaleculeMd₃(InPaPt)
Evidence
⋯4 lines
123/// ];
124///
125/// assert_eq!(ranges, expected);
126/// ```
127pub fn partition(columns: &[ArrayRef]) -> Result<Partitions, ArrowError> {
128 if columns.is_empty() …
167 Ok((0..slice_len).map(|i| !cmp(i, i).is_eq()).collect())
168}
169
170#[cfg(test)]
171mod tests {
172 use std::sync::Arc;
173
174 use super::*;
175 use arrow_array::*;
176 use arrow_schema::DataType;
177
178 #[test]
179 fn test_partition_empty() {
180 let err = partition(&[]).unwrap_err();
181 assert_eq!(
182 err.to_string(), …
274:45… ks().iter_padded();
275
276 let c = |((l, r), n)| (l ^ r) | (l & r & n);
277 let buffer = l.zip(r).zip(ne).map(c).collect();
278 BooleanBuffer::new(buffer, 0, len).into()
279 }
280 …
655:29… Array::compare_unchecked(left, left_idx, right, right_idx) }
656}
657
658#[cfg(test)]
659mod tests {
660 use std::sync::Arc;
661
662 use arrow_array::{DictionaryArray, Int32Array, Scalar, StringArray};
663
664 use super::*;
665
666 #[test]
667 fn test_null_dict() {
668 let a = DictionaryArray::new(Int32Array::new_null(10), Arc::new(Int32Array::new_null(0)));
669 …
319:4… // 1 (index 0 of array1) is smaller than 4 (index 1 of array2)
320/// assert_eq!(cmp(0, 1), Ordering::Less);
321///
322/// let array1 = Int32Array::from(vec![Some(1), None]);
323/// let array2 = Int32Array::from(vec![N …
Showing the top 5 files — 2 more files (36 regions) not shown.
No evidence locations were recorded for this file. Raw result