Loading...
This page describes the EXTRACT_DATE function in Lenses SQL.
EXTRACT_DATE(timestamp)
Extracts the date portion of a timestamp-micros or timestamp-millis returning a date value.
Available in:
Sample code:
USE `kafka`; SELECT EXTRACT_DATE(_meta.timestamp), _meta.timestamp FROM nyc-yellow-taxi-trip LIMIT 1;
Output:
{ "value": { "EXTRACT_DATE": "2023-11-28", "timestamp": "2023-11-28T20:28:45.41Z" } }
✓