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

missing semicolon on cubes/orders.yml - when adding a pre-aggregation #7473

Closed
pinale opened this issue Nov 29, 2023 · 6 comments
Closed

missing semicolon on cubes/orders.yml - when adding a pre-aggregation #7473

pinale opened this issue Nov 29, 2023 · 6 comments
Labels
bug Something isn't working data modeling:yaml data modeling duplicate This issue or pull request already exists help wanted Community contributions are welcome.

Comments

@pinale
Copy link

pinale commented Nov 29, 2023

following the getting started tutorial https://cube.dev/docs/product/getting-started/core/create-a-project with the built-in database
when i add a pre-aggregation i get this error
error

i've tried to add the pre-aggregation code snippet to the cubes/orders.yml (manually) as well but in this case the error is:
Error during upload of dev_pre_aggregations.orders_main_11f2gsdh_2ee4v4df_1ime8pq-0.csv.gz create table: CREATE TABLE dev_pre_aggregations.orders_main_11f2gsdh_2ee4v4df_1ime8pq (orders__status varchar(255), orders__created_at_day timestamp, orders__count bigint): Internal: No such file or directory (os error 2)

cubes/orders.yml

cubes:
  - name: orders
    sql_table: public.orders
    data_source: default

    joins: []

    dimensions:
      - name: id
        sql: id
        type: number
        primary_key: true

      - name: status
        sql: status
        type: string

      - name: created_at
        sql: created_at
        type: time

      - name: completed_at
        sql: completed_at
        type: time

    measures:
      - name: count
        type: count

      - name: number
        sql: number
        type: sum

    pre_aggregations:
      - name: main
        measures:
          - orders.count
        dimensions:
          - orders.status
        timeDimension: orders.created_at
        granularity: day
@igorlukanin
Copy link
Member

I can confirm that the Rollup Designer would not work for a new Cube Core project with a YAML data model.

@igorlukanin igorlukanin added the help wanted Community contributions are welcome. label Nov 30, 2023
Copy link

If you are interested in working on this issue, please leave a comment below and we will be happy to assign the issue to you.
If this is the first time you are contributing a Pull Request to Cube.js, please check our contribution guidelines.
You can also post any questions while contributing in the #contributors channel in the Cube.js Slack.

@kaptinlin
Copy link

I have the same issue.

@igorlukanin
Copy link
Member

Looks like a duplicate of #7223, isn't it?

@smellyspice
Copy link

This is a popular bug. Another dupe 5989

@paveltiunov paveltiunov added the duplicate This issue or pull request already exists label Jan 10, 2024
@whtblktone
Copy link

Why close it. What's the result?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working data modeling:yaml data modeling duplicate This issue or pull request already exists help wanted Community contributions are welcome.
Projects
None yet
Development

No branches or pull requests

6 participants