Incomplete data model validation: an array is accepted as time_dimension
in a pre-aggregation definition
#9138
Labels
time_dimension
in a pre-aggregation definition
#9138
Describe the bug
In YAML-based data models, an array is accepted for the
time_dimension
parameter in a pre-aggregation definition. This data model compiles but fails at runtime, when the query comes.Changing the time dimension definition to the following 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/p1737652938177579
The text was updated successfully, but these errors were encountered: