Limit 연산자

개요

반환되는 결과 수를 다음으로 제한합니다 limit.

| limit <integer>

어떤 레코드가 반환되는지에 대한 보장은 없습니다, unless a sort 이미 데이터에 대해 수행되었습니다.

예시

circle-info

예제 데이터

let aws_alb = datatable [
  {"type": "https", "p_event_time": "2023-09-16 05:59:04.058", "sentBytes": 167},
  {"type": "https", "p_event_time": "2023-09-16 05:45:34.863", "sentBytes": 329},
  {"type": "https", "p_event_time": "2023-09-16 05:36:09.017", "sentBytes": 167},
  {"type": "https", "p_event_time": "2023-09-16 05:27:39.177", "sentBytes": 468992}
];

결과를 하나로 제한

aws_alb
| limit 1
이벤트

{ "p_event_time": "2023-09-16 05:59:04.058", "sentBytes": 167, "type": "https" }

마지막 업데이트

도움이 되었나요?