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

Function ends_with

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

Perform SQL `ENDSWITH(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::ends_with; let strings = StringArray::from(vec!["arrow-rs", "arrow-rs", "Parquet"]); let patterns = StringArray::from(vec!["arr", "

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

Source from the content-addressed store, hash-verified

162/// assert_eq!(result, BooleanArray::from(vec![false, true, true]));
163/// ```
164pub fn ends_with(left: &dyn Datum, right: &dyn Datum) -> Result<BooleanArray, ArrowError> {
165 like_op(Op::EndsWith, left, right)
166}
167
168/// Perform SQL `CONTAINS(left, right)`
169///

Callers

nothing calls this directly

Calls 1

like_opFunction · 0.85

Tested by

no test coverage detected