File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
cubejs-schema-compiler/adapter Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -357,6 +357,10 @@ class PreAggregations {
357
357
} ) ) ;
358
358
}
359
359
360
+ canUseTransformedQuery ( ) {
361
+ return PreAggregations . transformQueryToCanUseForm ( this . query ) ;
362
+ }
363
+
360
364
static hasCumulativeMeasures ( query ) {
361
365
const measures = ( query . measures . concat ( query . measureFilters ) ) ;
362
366
return R . pipe (
Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ class CompilerApi {
72
72
dataSource : sqlGenerator . dataSource ,
73
73
aliasNameToMember : sqlGenerator . aliasNameToMember ,
74
74
rollupMatchResults : includeDebugInfo ?
75
- sqlGenerator . preAggregations . rollupMatchResultDescriptions ( ) : undefined
75
+ sqlGenerator . preAggregations . rollupMatchResultDescriptions ( ) : undefined ,
76
+ canUseTransformedQuery : sqlGenerator . preAggregations . canUseTransformedQuery ( )
76
77
} ) ) ;
77
78
}
78
79
You can’t perform that action at this time.
0 commit comments