Skip to content

Commit 410f831

Browse files
author
Ozgun Erdogan
committed
Added a few more regression tests for the previous hll_add_trans() changes.
1 parent 69fd4e2 commit 410f831

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

regress/add_agg.ref

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,29 @@ select hll_print(hll_add_agg(NULL, 10));
115115
EMPTY, nregs=1024, nbits=5, expthresh=-1(80), sparseon=1
116116
(1 row)
117117

118+
select hll_print(hll_add_agg(NULL, 10, 4));
119+
hll_print
120+
----------------------------------------------------------
121+
EMPTY, nregs=1024, nbits=4, expthresh=-1(64), sparseon=1
122+
(1 row)
123+
124+
select hll_print(hll_add_agg(NULL, 10, 4, 512));
125+
hll_print
126+
-------------------------------------------------------
127+
EMPTY, nregs=1024, nbits=4, expthresh=512, sparseon=1
128+
(1 row)
129+
130+
select hll_print(hll_add_agg(NULL, 10, 4, -1));
131+
hll_print
132+
----------------------------------------------------------
133+
EMPTY, nregs=1024, nbits=4, expthresh=-1(64), sparseon=1
134+
(1 row)
135+
136+
select hll_print(hll_add_agg(NULL, 10, 4, 512, 0));
137+
hll_print
138+
-------------------------------------------------------
139+
EMPTY, nregs=1024, nbits=4, expthresh=512, sparseon=0
140+
(1 row)
141+
118142
DROP TABLE test_khvengxf;
119143
DROP TABLE

regress/add_agg.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,12 @@ select hll_print(hll_add_agg(NULL));
6464

6565
select hll_print(hll_add_agg(NULL, 10));
6666

67+
select hll_print(hll_add_agg(NULL, 10, 4));
68+
69+
select hll_print(hll_add_agg(NULL, 10, 4, 512));
70+
71+
select hll_print(hll_add_agg(NULL, 10, 4, -1));
72+
73+
select hll_print(hll_add_agg(NULL, 10, 4, 512, 0));
74+
6775
DROP TABLE test_khvengxf;

0 commit comments

Comments
 (0)