컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
최대
max(numericExpression)
설명
max
함수는 숫자 열 내 값의 최대값을 반환합니다.
match
와 함께 사용하여 데이터의 각 그룹 내 최대값을 가져오는 데 자주 사용됩니다.
매개변수 데이터 유형
NUMBER
반환 유형
NUMBER
코드 샘플
예시
target.ip
가 비어 있지 않은 모든 이벤트를 찾습니다. principal.ip
와 일치하는 모든 이벤트의 경우 metadata.event_timestamp.seconds
의 최대값을 max_seconds
라는 변수에 저장합니다.
target.ip != ""
match:
principal.ip
outcome:
$max_seconds = max(metadata.event_timestamp.seconds)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-01-07(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-01-07(UTC)"],[[["The `max` function is used to determine the highest value within a column of numbers."],["This function is used with the `match` function, to find the maximum value of each group within a dataset."],["The function only accepts `NUMBER` data types as its input."],["The function returns the highest `NUMBER` data type value."]]],[]]