(
values: impl IntoIterator<Item: AsRef<str>>,
data_type: &DataType,
)
| 2615 | } |
| 2616 | |
| 2617 | fn make_array( |
| 2618 | values: impl IntoIterator<Item: AsRef<str>>, |
| 2619 | data_type: &DataType, |
| 2620 | ) -> Box<dyn Array> { |
| 2621 | match data_type { |
| 2622 | DataType::Utf8 => Box::new(StringArray::from_iter_values(values)), |
| 2623 | DataType::LargeUtf8 => Box::new(LargeStringArray::from_iter_values(values)), |
| 2624 | DataType::Utf8View => Box::new(StringViewArray::from_iter_values(values)), |
| 2625 | _ => unimplemented!(), |
| 2626 | } |
| 2627 | } |
| 2628 | |
| 2629 | #[derive(Debug)] |
| 2630 | enum DatumType { |
no outgoing calls