Comments (4)
Hi @kriKinesso 👋
My suspicion is that referencing multiple (too many?) pre-aggregations somehow breaks the query matching resolution:
rollups: [
CUBE.main,
client.main,
client_agency.main,
agency.main,
],
Could you please try reworking your pre-aggregations in a way that there are only two pre-aggregations there, one from bq
and one from pg
?
from cube.
Hi @igorlukanin 👋, thank you for your answer.
So is there a limit number for the pre aggregations you can reference in a rollup join?
In my case I have to use pre-aggregations for this sort of queries, I absolutely can not allow users to query the datasource directly. If I remove any of the pre-aggregations from rollups the query won't match.
Also, I have other pre-aggregations, with a larger number of rollups that work well. This error comes up only in the case of many to many relationships, which leads me to think that either we are dealing with a bug, or pre-aggregations are not meant to be used with many to many relationships.
from cube.
In my case I have to use pre-aggregations for this sort of queries, I absolutely can not allow users to query the datasource directly. If I remove any of the pre-aggregations from rollups the query won't match.
Well, I don't think that you should not use pre-aggregations. However, I feel like you might try combining 3 pre-aggregations on the pg
data source (that you reference in the rollup join) into one. And then reference only that one in the rollup join.
This error comes up only in the case of many to many relationships, which leads me to think that either we are dealing with a bug, or pre-aggregations are not meant to be used with many to many relationships.
I can't spot the issue by looking at your data model. Let me tag @paveltiunov in case he sees anything suspicions.
from cube.
I tried grouping the pre-aggregations, and I still get the same error, so unfortunately that is not the issue.
from cube.
Related Issues (20)
- Cube is getting invalid query generated by Metabase when aggregating by custom field HOT 1
- Documentation for MSSQL custom CA certificates is incorrect / incomplete
- MSSQL can't use CTEs HOT 1
- Colon (:) in `sql` would not allow the data model to compile
- Cube does not handles a new metabase query? HOT 1
- ORDER BY is not working for preaggregations queries HOT 4
- Metabase sql query HOT 6
- There should be a way to cancel the requests from useCubeQuery when the component has unmounted
- Rollup joins across different data sources with different param allocators causing invalidations
- Cube Deployment extremely slow using Sample Production Docker Compose HOT 2
- GraphQL API does not support fragments HOT 1
- [Feature request] Unnest array support
- Add tags/identifiers to query requests made to Cube.js
- Does Cube Core support Azure Blob Storage? HOT 2
- Data blending approach via SQL API
- [Data Source Connectivity Request] for Apache Doris
- SQL API failed - sum + case when
- SQL API query errors when comparing two columns
- SQL API fails when aggregating using EXTRACT on a timestamp
- Metabase - SQL_PUSH_DOWN custom Expression Float32 not supported
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cube.