최종 수정: 에
GROUP_BIT_AND
설명
단일 정수 컬럼 또는 표현식의 모든 값에 대해 비트 AND 연산을 수행합니다.
구문
GROUP_BIT_AND(<expr>)
매개변수
| 매개변수 | 설명 |
|---|---|
<expr> | 지원하는 타입: TinyInt, SmallInt, Integer, BigInt, LargeInt. |
반환 값
예제
-- setup
create table group_bit(
value int
) distributed by hash(value) buckets 1
properties ("replication_num"="1");
insert into group_bit values
(3),
(1),
(2),
(4),
(NULL);
select group_bit_and(value) from group_bit;
+----------------------+
| group_bit_and(value) |
+----------------------+
| 0 |
+----------------------+
select group_bit_and(value) from group_bit where value is null;
+----------------------+
| group_bit_and(value) |
+----------------------+
| NULL |
+----------------------+