0
에 의해 마지막 시간 그룹에서 이벤트를 계산하는 방법을 내가 타임 스탬프를 포함하는 객체, 분
class Event{ public long timestamp; }
지금 내가 어떤 분 마지막 시간 그룹의 모든 이벤트를 카운트 할 수 있습니다. 그래서 나는 60 개의 결과를 기대하고있다.
내가 시도해야하지만 스냅 샷 근처 나에게 구문 오류를 줄 쿼리 :
select timestamp.roundFloor(''min'') as timeminute, count(1)
from Event
where timestamp.after(current_timestamp.minus(60 minutes))
group by timeminute
snapshot every 15 sec
어떻게 이런 쿼리를 작성합니까?