Conversion
This page describes how to use conversion or CAST functions in Lenses SQL Processors.
CAST
Enables conversion of values from one data type to another.
Available in:
Sample code
USE `kafka`;
SELECT
CAST(price as INT),
price
FROM products-events
LIMIT 1;
Output:
{
"value": {
"alias": 2, # new value
"price": 2.46 # old value
}
}