Fix tests where hll is not installed

pull/2166/head
Onder Kalaci 2018-05-11 16:01:47 +03:00
parent b1619e182d
commit 12e50d96dc
1 changed files with 5 additions and 9 deletions

View File

@ -87,6 +87,8 @@ ERROR: cannot compute count (distinct) approximation
HINT: You need to have the hll extension loaded. HINT: You need to have the hll extension loaded.
-- Check that approximate count(distinct) works at a table in a schema other than public -- Check that approximate count(distinct) works at a table in a schema other than public
-- create necessary objects -- create necessary objects
SET citus.next_shard_id TO 20000000;
SET citus.next_placement_id TO 20000000;
CREATE SCHEMA test_count_distinct_schema; CREATE SCHEMA test_count_distinct_schema;
CREATE TABLE test_count_distinct_schema.nation_hash( CREATE TABLE test_count_distinct_schema.nation_hash(
n_nationkey integer not null, n_nationkey integer not null,
@ -94,15 +96,9 @@ CREATE TABLE test_count_distinct_schema.nation_hash(
n_regionkey integer not null, n_regionkey integer not null,
n_comment varchar(152) n_comment varchar(152)
); );
SELECT master_create_distributed_table('test_count_distinct_schema.nation_hash', 'n_nationkey', 'hash'); SELECT create_distributed_table('test_count_distinct_schema.nation_hash', 'n_nationkey', 'hash');
master_create_distributed_table create_distributed_table
--------------------------------- --------------------------
(1 row)
SELECT master_create_worker_shards('test_count_distinct_schema.nation_hash', 4, 2);
master_create_worker_shards
-----------------------------
(1 row) (1 row)