cube-js / cube-js/cube

When using query pushdown error: External error: Execution error: Arrow error: External error: oneshot canceled

Open
#8,529 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Describe the bug**
When using query pushdown, using the MEASURE function will throw an exception, which I believe should not occur, as the MEASURE function should be compatible with various aggregate functions.
image

**To Reproduce**
Steps to reproduce the behavior:
1. Deploy Superset and Cube using Docker.
2. I have two models, namely pv_ads_sales and pv_ads_territory_permission, among which pv_ads_sales can be associated with pv_ads_territory_permission through the pv_ads_sales_territory_code field. Since query pushdown does not have an association feature, I implemented it using the 'in' method. I group by pv_ads_sales_local_date on the outer layer and use MEASURE for statistical metrics, but it results in an error.
image
3. Strangely, when I switch to using the sum function for the calculation, it works successfully. My understanding is that the MEASURE function should be able to accommodate any metric.
image

**Version:**
[e.g. 0.35.64]

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.