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

Function contains

arrow-string/src/like.rs:190–192  ·  view source on GitHub ↗

Perform SQL `CONTAINS(left, right)` # Supported DataTypes `left` and `right` must be the same type, and one of - Utf8 - LargeUtf8 - Utf8View - Binary - LargeBinary - BinaryView # Example ``` # use arrow_array::{StringArray, BooleanArray}; # use arrow_string::like::contains; let strings = StringArray::from(vec!["arrow-rs", "arrow-rs", "arrow-rs", "Parquet"]); let patterns = StringArray::from(vec

(left: &dyn Datum, right: &dyn Datum)

Source from the content-addressed store, hash-verified

188/// assert_eq!(result, BooleanArray::from(vec![true, true, false, false]));
189/// ```
190pub fn contains(left: &dyn Datum, right: &dyn Datum) -> Result<BooleanArray, ArrowError> {
191 like_op(Op::Contains, left, right)
192}
193
194/// Perform equality check on two arrays using an ASCII case-insensitive match.
195///

Callers 3

op_scalarFunction · 0.85
op_scalarFunction · 0.85
likeMethod · 0.85

Calls 1

like_opFunction · 0.85

Tested by

no test coverage detected