You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executing a query on a view with multi_stage=true measure in a filter, I encounter an error, although the same query works correctly when run on the corresponding cube.
Specifically, a measure defined as multi_stage=true causes the error when queried from the view as a filter. However, if I call the measure multi_stage=true as a measure it work fine.
Both measures work correctly when the data is queried directly from the cube instead of the view.
To Reproduce
When executing a query on the mart_media view with multi_stage=true measures, I encounter an error, although the same query works correctly when run on the mart_media_base cube.
Specifically, the measure brand_name_filter, which is defined as multi_stage=true, causes the error in the view. However, the count_total measure, which is also defined as multi_stage=true, works fine.
Both measures work correctly if the data is queried from the cube instead of the view.
Steps to reproduce the behavior:
Define a cube test_cube with the provided schema.
Create a view test_cube_view that joins the test_cube cube.
Run a query involving the brand_name_filter and count_total measures in the view.
Observe that the count_total measure works fine, but the brand_name_filter measure fails with an error.
Expected behavior
The brand_name_filter measure (with multi_stage=true) should work correctly when queried from the view, similar to how the count_total measure works.
Additional context
The issue only arises when querying the measures from the view test_cube_view, specifically with the brand_name_filter measure (defined as multi_stage=true). The same query works as expected when queried from the cube test_cube.
I think the issue is do to multiStageQuery:false
The text was updated successfully, but these errors were encountered:
Describe the bug
When executing a query on a view with
multi_stage=true
measure in a filter, I encounter an error, although the same query works correctly when run on the corresponding cube.Specifically, a measure defined as
multi_stage=true
causes the error when queried from the view as a filter. However, if I call the measuremulti_stage=true
as a measure it work fine.Both measures work correctly when the data is queried directly from the cube instead of the view.
To Reproduce
When executing a query on the
mart_media
view withmulti_stage=true
measures, I encounter an error, although the same query works correctly when run on themart_media_base
cube.Specifically, the measure
brand_name_filter
, which is defined asmulti_stage=true
, causes the error in the view. However, thecount_total
measure, which is also defined asmulti_stage=true
, works fine.Both measures work correctly if the data is queried from the cube instead of the view.
Steps to reproduce the behavior:
test_cube
with the provided schema.test_cube_view
that joins thetest_cube
cube.brand_name_filter
andcount_total
measures in the view.count_total
measure works fine, but thebrand_name_filter
measure fails with an error.Expected behavior
The
brand_name_filter
measure (withmulti_stage=true
) should work correctly when queried from the view, similar to how thecount_total
measure works.Screenshots
Minimally reproducible Cube Schema
CUBE
VIEW
Version:
latest (1.2.17)
Additional context
The issue only arises when querying the measures from the view
test_cube_view
, specifically with thebrand_name_filter
measure (defined asmulti_stage=true
). The same query works as expected when queried from the cubetest_cube
.I think the issue is do to
multiStageQuery:false
The text was updated successfully, but these errors were encountered: