Limit 연산자

개요

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

| limit <정수>

어떤 레코드가 반환될지는 다음과 같은 경우가 아니면 보장되지 않습니다. 정렬 가 데이터에 대해 이미 수행되어야 합니다.

예시

예시 데이터

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" }

마지막 업데이트

도움이 되었나요?