Open wkyhit opened 1 year ago
Hello, is there any fix to his ? I'm having the same problem with the following error
From members are not found in [] for join {\"join\":{\"relationship\":\"hasMany\"},\"from\":\"mypipeline_test_names\",\"to\":\"mypipeline_users_stats\",\"originalFrom\":\"mypipeline_test_names\",\"originalTo\":\"mypipeline_users_stats\"}. Please make sure join fields are referencing dimensions instead of columns.
Joins are good & rollups are good
Hello, some insight on this ?
Hi, i made it work.
1) the measures and dimensions properties of your preaggregations must be of type() => string[]
where the strings are formated like so:
"cube_name.measure_name" or "cube_name.dimensionname"
2) the timeDimension property of your pre_aggregations must be of type() => string
formated in the same way.
so @wkyhit you can iterate over your desired measures and dimensions and generate those strings.
Problem
I create dynamic cubes according to this tutorial: [https://cube.dev/docs/schema/advanced/dynamic-schema-creation] And I have question about how to set pre-aggregation field as the measures and the dimensions in cubes are not known in advance. If I just simply fill the pre-aggregation with a string field, the pre-aggregation will not take effect. Here is the example code below:
Related Cube.js schema