Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregate function not parallelizable ? #120

Open
jschaeff opened this issue Jun 3, 2021 · 0 comments
Open

Aggregate function not parallelizable ? #120

jschaeff opened this issue Jun 3, 2021 · 0 comments

Comments

@jschaeff
Copy link

jschaeff commented Jun 3, 2021

Hello, I'm trying to use timescaledb continuous aggregation with HLL on my database in postgresql 12.7:

 \dxe

     Nom     | Version |   Schéma   |                            Description                            
-------------+---------+------------+-------------------------------------------------------------------
 hll         | 2.15    | public     | type for storing hyperloglog data
 plpgsql     | 1.0     | pg_catalog | PL/pgSQL procedural language
 timescaledb | 2.3.0   | public     | Enables scalable inserts and complex queries for time-series data
CREATE MATERIALIZED VIEW sentdata_summary_daily
WITH (timescaledb.continuous) AS
SELECT network,
       time_bucket(INTERVAL '1 day', date) AS bucket,
       HLL_ADD_AGG(HLL_HASH_BIGINT(userid)) as users_set
FROM dataselectvol
GROUP BY network,bucket;
ERROR:  aggregates which are not parallelizable are not supported

But I thought from #73 that HLL functions were parallelisable.

Can you confirm that #73 is fixed in version 2.15 ? Do you think that the issue might be related to TimescaleDB ? Or am I misusing the hll_* functions ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant