mirror of https://github.com/citusdata/citus.git
Fix tests where hll is not installed
parent
b1619e182d
commit
12e50d96dc
|
@ -87,6 +87,8 @@ ERROR: cannot compute count (distinct) approximation
|
|||
HINT: You need to have the hll extension loaded.
|
||||
-- Check that approximate count(distinct) works at a table in a schema other than public
|
||||
-- create necessary objects
|
||||
SET citus.next_shard_id TO 20000000;
|
||||
SET citus.next_placement_id TO 20000000;
|
||||
CREATE SCHEMA test_count_distinct_schema;
|
||||
CREATE TABLE test_count_distinct_schema.nation_hash(
|
||||
n_nationkey integer not null,
|
||||
|
@ -94,15 +96,9 @@ CREATE TABLE test_count_distinct_schema.nation_hash(
|
|||
n_regionkey integer not null,
|
||||
n_comment varchar(152)
|
||||
);
|
||||
SELECT master_create_distributed_table('test_count_distinct_schema.nation_hash', 'n_nationkey', 'hash');
|
||||
master_create_distributed_table
|
||||
---------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
SELECT master_create_worker_shards('test_count_distinct_schema.nation_hash', 4, 2);
|
||||
master_create_worker_shards
|
||||
-----------------------------
|
||||
SELECT create_distributed_table('test_count_distinct_schema.nation_hash', 'n_nationkey', 'hash');
|
||||
create_distributed_table
|
||||
--------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
|
|
Loading…
Reference in New Issue