Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre-aggregations are not inherited via extends in YAML-based models #9269

Open
igorlukanin opened this issue Feb 25, 2025 · 0 comments
Open
Labels

Comments

@igorlukanin
Copy link
Member

Describe the bug
Pre-aggregations are not inherited via extends in YAML-based models.
However, they do in JS-based ones.

To Reproduce
Steps to reproduce the behavior:

  1. Use provided data model
  2. Check pre-aggregations
  3. See that there are only 3 pre-aggregations
Image

Expected behavior
4 pre-aggregations, two in base cubes, two in child cubes.

Minimally reproducible data model

cubes:
  - name: pa_yml
    sql: SELECT 132

    measures:
      - name: count
        type: count

    pre_aggregations:
      - name: main
        measures:
          - count
  
  - name: pa_yml_ext
    extends: pa_yml
cube(`pa_js`, {
  sql: `SELECT 132`,

  measures: {
    count: {
      type: `count`
    }
  },

  pre_aggregations: {
    main: {
      measures: [
        count
      ]
    }
  }
})

cube(`pa_js_ext`, {
  extends: pa_js
})

Version:
v1.2.0+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant