File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,16 @@ export class PreAggregations {
166166 return false ;
167167 }
168168
169- if ( td . dimension === foundPreAggregation . preAggregation . rollupLambdaTimeDimensionReference ?. [ 0 ] ?. dimension ) {
169+ const timeDimensionsReferences =
170+ foundPreAggregation . preAggregation . rollupLambdaTimeDimensionReference ||
171+ foundPreAggregation . references . timeDimensions ;
172+
173+ if ( td . dimension === timeDimensionsReferences [ 0 ] . dimension ) {
170174 return true ;
171175 }
172176
173177 // Handling for views
174- return td . dimension === allBackAliasMembers [ foundPreAggregation . references . timeDimensions [ 0 ] . dimension ] ;
178+ return td . dimension === allBackAliasMembers [ timeDimensionsReferences [ 0 ] . dimension ] ;
175179 } ) ;
176180
177181 const filters = preAggregation . partitionGranularity && this . query . filters . filter ( td => {
You can’t perform that action at this time.
0 commit comments