Presto 简要介绍
presto是一个分布式的sql交互式查询引擎,基于内存的,可以达到hive查询效率的5到10倍,支持多种数据源的秒级查询。另外除了基于内存之外,还有优化如下:
- 向量计算
- 动态编译执行计划
- 优化的ORC和Parquet Reader技术
常用时间函数
参考https://prestodb.io/docs/current/functions/datetime.html
Operator | Example | Result |
---|---|---|
+ |
date '2012-08-08' + interval '2' day |
2012-08-10 |
+ |
time '01:00' + interval '3' hour |
04:00:00.000 |
+ |
timestamp '2012-08-08 01:00' + interval '29' hour |
2012-08-09 06:00:00.000 |
+ |