File: union_op.sql

package info (click to toggle)
postgresql-hll 2.18-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 58,720 kB
  • sloc: ansic: 2,805; sql: 2,160; cpp: 201; makefile: 22; sh: 1
file content (24 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- ----------------------------------------------------------------
-- Regression tests for union operator.
-- ----------------------------------------------------------------

SELECT hll_set_output_version(1);

SELECT hll_empty(11,5,256,1) || hll_empty(11,5,256,1);

SELECT hll_empty(11,5,256,1) || E'\\x128b498895a3f5af28cafe'::hll;

SELECT E'\\x128b498895a3f5af28cafe'::hll || E'\\x128b498895a3f5af28cafe'::hll;

SELECT E'\\x128b498895a3f5af28cafe'::hll || E'\\x128b49da0ce907e4355b60'::hll;

SELECT hll_empty(11,5,256,1) || hll_hash_integer(1,0);

SELECT hll_empty(11,5,256,1)
       || hll_hash_integer(1,0)
       || hll_hash_integer(2,0)
       || hll_hash_integer(3,0);

SELECT hll_hash_integer(1,0) || hll_empty(11,5,256,1);

SELECT hll_hash_integer(1,0) || hll_empty(11,5,256,1) || hll_hash_integer(2,0);