Giter Club home page Giter Club logo

Comments (4)

igorlukanin avatar igorlukanin commented on June 1, 2024

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.

kriKinesso avatar kriKinesso commented on June 1, 2024

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.

igorlukanin avatar igorlukanin commented on June 1, 2024

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.

kriKinesso avatar kriKinesso commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.