PARSE_DATE
This page describes the PARSE_DATE function in Lenses SQL.
PARSE_DATE(string, pattern)
Builds a date value given a date string representation and a date pattern.
Available in:
Sample code:
USE `kafka`;
SELECT
PARSE_DATE(tpep_pickup_datetime, 'yyyy-MM-dd HH:mm:ss'),
tpep_pickup_datetime
FROM nyc-yellow-taxi-trip
LIMIT 1;
Output:
{
"value": {
"PARSE_DATE": "2016-01-01",
"tpep_pickup_datetime": "2016-01-01 00:00:02"
}
}