cube-js / cube-js/cube

Cube allows to define a pre-aggregation with non-unique member references

Open
#3,486 2 comments 0 reactions 1 assignee Claimed by @ovr 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**
Cube allows to define and build a pre-aggregation with non-unique member references (e.g., one dimension referenced twice in the pre-aggregation definition).

**To Reproduce**
1. Create a cube with at least one dimension
2. Add a `rollup` pre-aggregation that references this dimension twice and stores pre-aggregation data in CUbe Store
3. Execute a query (Cube will build a pre-aggregation, Cube Store will download the CSV file and store it)
4. The query will yield this error:
> Internal: Error during planning: Schema contains duplicate qualified field name "..."

**Expected behavior**
Cube won't compile the schema with pre-aggregations that have non-unique member references and it will show an error.

**Screenshots**
Screenshot 2021-09-24 at 14 23 47
Screenshot 2021-09-24 at 14 22 36

**Version:**
0.28.38

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.