Phoenix统计某段时间内的数据量

原来直接mysql语句就好了…还试了那么多…

select count(*) from "normalFlow" where "Timestamp" BETWEEN '2019-05-10 17:11:00' and '2019-05-10 17:13:25';

结果:

0: jdbc:phoenix:master,slave1,slave2,slave3:2> select count(*) from "normalFlow" where "Timestamp" BETWEEN '2019-05-10 17:11:00' and '2019-05-10 17:13:25';
+-----------+
| COUNT(1)  |
+-----------+
| 116       |
+-----------+

好气啊,浪费好多时间…查

你可能感兴趣的:(大数据)