Skip to content
These docs are for v1 of RelationalAI. Click here to view the v2 docs.

endswith

relationalai.semantics.std.strings
endswith(s: StringValue, suffix: StringValue) -> Expression

Check whether s ends with suffix.

Parameters

  • s

    (StringValue) - The string to check.
  • suffix

    (StringValue) - The suffix to check for.

Returns

  • Expression - An Expression that evaluates to true if s ends with suffix.

Examples

Filter strings that end with a suffix:

select(Person.name).where(strings.endswith(Person.last_name, "dottir"))