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

SWAPCASE

This page describes the SWAPCASE function in Lenses SQL.

SWAPCASE(expr)

Swaps the case of a string expression.

Available in:

Processors
SQL Studio

✓

✓

Sample code:

USE `kafka`;
SELECT 
    SWAPCASE(first_name), 
    first_name 
FROM users-topic
LIMIT 1;

Output:

{
  "value": {
    "SWAPCASE": "jOSE",
    "first_name": "Jose"
  }
}

Last updated

Was this helpful?