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

Function concat_elements_utf8

arrow-string/src/concat_elements.rs:89–94  ·  view source on GitHub ↗

Returns the elementwise concatenation of a [`GenericStringArray`]. An index of the resulting [`GenericStringArray`] is null if any of `StringArray` are null at that location. ```text e.g: ["Hello"] + ["World"] = ["HelloWorld"] ["a", "b"] + [None, "c"] = [None, "bc"] ``` An error will be returned if `left` and `right` have different lengths

(
    left: &GenericStringArray<Offset>,
    right: &GenericStringArray<Offset>,
)

Source from the content-addressed store, hash-verified

87///
88/// An error will be returned if `left` and `right` have different lengths
89pub fn concat_elements_utf8<Offset: OffsetSizeTrait>(
90 left: &GenericStringArray<Offset>,
91 right: &GenericStringArray<Offset>,
92) -> Result<GenericStringArray<Offset>, ArrowError> {
93 concat_elements_bytes(left, right)
94}
95
96/// Returns the elementwise concatenation of a [`GenericBinaryArray`].
97pub fn concat_element_binary<Offset: OffsetSizeTrait>(

Callers 6

concat_elements_dynFunction · 0.85
test_string_concatFunction · 0.85
test_string_concat_errorFunction · 0.85
test_string_concat_sliceFunction · 0.85

Calls 1

concat_elements_bytesFunction · 0.85

Tested by 5

test_string_concatFunction · 0.68
test_string_concat_errorFunction · 0.68
test_string_concat_sliceFunction · 0.68