EXTRACT_TIME
This page describes the EXTRACT_TIME function in Lenses SQL.
EXTRACT_TIME(timestamp)
Extracts the time portion of a timestamp-micros or timestamp-millis returning a time-millis or time-micros value depending on the timestamp precision.
Available in:
Processors
SQL Studio
✓
✓
Sample code:
USE `kafka`;
SELECT
EXTRACT_TIME(_meta.timestamp),
_meta.timestamp
FROM nyc-yellow-taxi-trip
LIMIT 1;
Output:
{
"value": {
"EXTRACT_TIME": "20:28:45.41",
"timestamp": "2023-11-28T20:28:45.41Z"
}
}
Last updated
Was this helpful?