cube-js / cube-js/cube

Queries with non-additive measures and segments wouldn't match pre-aggregations

Open
#2,959 0 comments 0 reactions 0 assignees View on GitHub
pre-aggregations
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
According to the docs:
> If query is Not Additive check if query time dimension granularity is set, all query filter dimensions are included in query dimensions and that the rollup defines exact set of dimensions and all measures used in the query.

However, if such a query contains a segment, it won't match a pre-aggregation no matter what. Confirmed by @paveltiunov.

**Additional context**
Slack thread: https://cube-js.slack.com/archives/CC0403RRR/p1623224533165800?thread_ts=1623075780.111700&cid=CC0403RRR

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.