- 카테고리:
:doc:`/sql-reference/functions-aggregation`(카디널리티 추정), :doc:`윈도우 함수 </sql-reference/functions-window-syntax>`(카디널리티 추정)
HLL_COMBINE¶
입력 상태를 단일 출력 상태로 결합(병합)합니다.
이를 통해, HLL_ACCUMULATE 가 동일 테이블의 수평 파티션에 대해 실행되어 각 테이블 파티션에 대한 알고리즘 상태를 생성하는 시나리오가 가능해집니다. 이러한 상태는 나중에 HLL_COMBINE 을 사용하여 결합되어, 전체 테이블에 대해 HLL_ACCUMULATE 의 단일 실행과 동일한 출력 상태를 생성할 수 있습니다.
- 참고 항목:
구문¶
집계 함수
윈도우 함수
OVER 절에 대한 자세한 내용은 윈도우 함수 구문 및 사용법 섹션을 참조하세요.
인자¶
stateHLL_ACCUMULATE 호출에 의해 생성된 상태 정보를 포함하는 식입니다.
사용법 노트¶
예¶
This example shows how to use the three related functions HLL_ACCUMULATE, HLL_ESTIMATE, and HLL_COMBINE.
간단한 테이블과 데이터를 만듭니다.
Create a table that contains the “state” that represents the current
approximate cardinality information for the table named sequence_demo:
Now create a second table and add data. (In a more realistic situation, the user could have loaded more data into the first table and divided the data into non-overlapping sets based on the time that the data was loaded.)
새 데이터에 대한 “상태” 정보만 가져옵니다.
행의 두 배치에 대한 “상태” 정보를 결합합니다.
결합된 행 세트의 대략적인 카디널리티를 가져옵니다.