You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In JavaScript-based data models, strings are accepted in the list of dimensions in a pre-aggregation definition. This data model compiles but fails at runtime, when the query comes.
Removing the backticks around w_merchant_id fixes it:
Typepath.join is not a function
TypeError: path.join is not a function
at CubeEvaluator.byPathAnyType (/cube/node_modules/@cubejs-backend/schema-compiler/src/compiler/CubeEvaluator.ts:356:55)
at CubeEvaluator.parsePathAnyType (/cube/node_modules/@cubejs-backend/schema-compiler/src/compiler/CubeEvaluator.ts:392:10)
at /cube/node_modules/@cubejs-backend/schema-compiler/src/adapter/PreAggregations.js:909:75
at Array.map (<anonymous>)
at PreAggregations.cubesFromPreAggregation (/cube/node_modules/@cubejs-backend/schema-compiler/src/adapter/PreAggregations.js:909:41)
...
Expected behavior
This data model should fail at compile time with a clear error message.
Describe the bug
In JavaScript-based data models, strings are accepted in the list of dimensions in a pre-aggregation definition. This data model compiles but fails at runtime, when the query comes.
Removing the backticks around
w_merchant_id
fixes it:To Reproduce
Steps to reproduce the behavior:
Expected behavior
This data model should fail at compile time with a clear error message.
Minimally reproducible Cube Schema
Version:
v1.1.16
Additional context
Reported by Embeddable in Slack: https://cube-js.slack.com/archives/C04KDTE2EF7/p1737652681703019
The text was updated successfully, but these errors were encountered: