cube-js / cube-js/cube

setting `CUBEJS_PRE_AGGREGATIONS_BUILDER` to true in production does not build pre aggregations

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

Description

**Problem**

Setting `CUBEJS_PRE_AGGREGATIONS_BUILDER` to `true` does not build pre aggregations unless dev mode is enabled.

**Related Cube.js schema**
```javascript
cube(`Cube`, {
sql: `` //, ...
pre_aggregations: {
// ...
external: false
}
}
})
```

Does not build pre-aggregations :arrow_down:
```yaml
CUBEJS_DEV_MODE: false
CUBEJS_PRE_AGGREGATIONS_BUILDER: true
CUBEJS_PRE_AGGREGATIONS_SCHEMA: public
```

Docs do not mention that this setting does not work in production mode.
https://cube.dev/docs/reference/environment-variables#cubejs-pre-aggregations-builder

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.