Loading...
This page describes the HOUR function in Lenses SQL.
HOUR (expr)
Extracts the hour component of an expression that is of type timestamp.
Available in:
Sample code:
USE `kafka`; SELECT HOUR(_meta.timestamp), _meta.timestamp FROM sea-vessel-position-reports LIMIT 1;
Output:
{ "value": { "HOUR": 20, "timestamp": "2023-11-28T20:28:45.337Z" } }
✓