cube-js / cube-js/cube

Annotation includes drillMembers when querying cube, but not view

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

Description

**Describe the bug**
I'm not getting any results when using resultSet.drillMembers, so I dug into resultSet.js and found that it uses the annotation object to retrieve the drillMembers. But when querying a view, drillMembers and drillMembersGrouped arrays are always empty, even when the cube data model is configured correctly.

**To Reproduce**
Steps to reproduce the behavior:
Create a cube with drillMembers
Run a REST query using load() against the cube, check the annotation object and see drillMembers populated
Create a view with the same cube
Run the same REST query, swapping out the view for the cube, check the annotation object and see drillMembers as an empty array

**Expected behavior**
I expect drillMembers to be populated when querying a view

**Version:**
0.34.9

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.