by shigemk2

当面は技術的なことしか書かない

date_diff presto

date_diff(unit, timestamp1, timestamp2) → bigint Returns timestamp2 - timestamp1 expressed in terms of unit.

第二引数と第三引数はdate型にキャストとかする必要があったりする

6.10. Date and Time Functions and Operators — Presto 0.172 Documentation