cube-js / cube-js/cube

Clear error message on duplicate names of cubes and views

Open
#9,596 0 comments 0 reactions 0 assignees View on GitHub
data modeling
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
I'm new to cube and did not know cubes and views could not have the same name. When you make a view with the same name as a cube the error message is not very helpful. I took me a while to figure out this was because of duplicate names.

Unable to load meta data.
Error: Error: Compile errors:
Cannot read properties of undefined (reading '_objectWithResolvedProperties')

**To Reproduce**
Create a cube and a view with the same name

**Expected behavior**
Clear error message that there is a duplication

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Minimally reproducible Cube Schema**

**Version:**
1.3.16

**Additional context**
Add any other context about the problem here.

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.