ablog

不器用で落着きのない技術者のメモ

Presto でタイムタンプを分でまるめる

Athena(Presto) で "2021-06-20 08:52:13.810" のようなタイムタンプを分にまるめる

SELECT date_trunc('minute',cast(timestart as timestamp)) as log_time, count(*) as cnt
FROM "default".system_log"