我有15分钟的总CQ,生成了15MINS_AGG,并保留了一个月的政策。
查询新的度量值时,我可以正确获取值。
SELECT * FROM RP_MONTH."15MINS_AGG" where Location = 'NY'
输出:
time Top1Value Location
---- ---------- ----
1557291600000000000 49.946 NY
1557292500000000000 49.946 NY
1557293400000000000 50.27934 NY
1557294300000000000 50.071 NY
当我尝试使用求和时,
SELECT SUM(Top1Value) FROM a_month."15MINS_First" where Path = 'NY'
我得到了总和,但时间戳记变为0。
输出:
time sum
---- ---
0 200.24233999999998
我尝试使用“顶部”和“最大值”,但是它们只是创建了另一个具有空值的字段
SELECT First(time),SUM(Top1Value) FROM a_month."15MINS_First" where Path = 'NY'
或
SELECT max(time),SUM(Top1Value) FROM a_month."15MINS_First" where Path = 'NY'
Max的样本输出:
time max sum
---- --- ---
0 200.24233999999998