pub fn can_sort(data_type: &DataType) -> bool
Available on crate feature compute_sort only.
Expand description

Checks if an array of type datatype can be sorted

Examples

use arrow2::compute::sort::can_sort;
use arrow2::datatypes::{DataType};

let data_type = DataType::Int8;
assert_eq!(can_sort(&data_type), true);

let data_type = DataType::LargeBinary;
assert_eq!(can_sort(&data_type), true)