endswith
function
Returns true
if expr
ends with endExpr
.
Since: Databricks Runtime 10.3
Arguments
expr
: A STRING or BINARY expression.endExpr
: A STRING or BINARY expression which is compared to the end ofstr
.
Returns
A BOOLEAN.
If expr
or endExpr
is NULL
, the result is NULL
.
If endExpr
is the empty string or empty binary the result is true
.
Since: Databricks Runtime 10.5
The function operates in BINARY mode if both arguments are BINARY.