For the complete documentation index, see llms.txt. This page is also available as Markdown.

ENDSWITH

This page describes the ENDSWITH function in Lenses SQL.

ENDSWITH(sourceExpr, targetExpr)

Returns true if an expression ends with the given substring.

Available in:

Processors
SQL Studio

Sample code:

USE `kafka`;
SELECT 
    ENDSWITH(status, 'unverified'), 
    status 
FROM users-topic
LIMIT 2;

Output:

{
  "value": {
    "ENDSWITH": false,
    "status": "verified"
  }
}
{
  "value": {
    "ENDSWITH": true,
    "status": "unverified"
  }
}

Last updated

Was this helpful?