MCPcopy Create free account
hub / github.com/apache/arrow-rs / make_array

Function make_array

arrow-string/src/like.rs:2617–2627  ·  view source on GitHub ↗
(
        values: impl IntoIterator<Item: AsRef<str>>,
        data_type: &DataType,
    )

Source from the content-addressed store, hash-verified

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 {

Callers 14

like_escape_manyFunction · 0.70
shiftFunction · 0.50
extract_sparseFunction · 0.50
extract_denseFunction · 0.50
interleave_fallbackFunction · 0.50
concat_fallbackFunction · 0.50
zip_implFunction · 0.50
nullifFunction · 0.50
remove_null_bufferFunction · 0.50
remove_null_valuesFunction · 0.50

Calls

no outgoing calls

Tested by 1

like_escape_manyFunction · 0.56