Skip to content

Commit 5b2ab90

Browse files
committed
feat: Log canUseTransformedQuery
1 parent 29b7641 commit 5b2ab90

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/cubejs-schema-compiler/adapter/PreAggregations.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,10 @@ class PreAggregations {
357357
}));
358358
}
359359

360+
canUseTransformedQuery() {
361+
return PreAggregations.transformQueryToCanUseForm(this.query);
362+
}
363+
360364
static hasCumulativeMeasures(query) {
361365
const measures = (query.measures.concat(query.measureFilters));
362366
return R.pipe(

packages/cubejs-server-core/core/CompilerApi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ class CompilerApi {
7272
dataSource: sqlGenerator.dataSource,
7373
aliasNameToMember: sqlGenerator.aliasNameToMember,
7474
rollupMatchResults: includeDebugInfo ?
75-
sqlGenerator.preAggregations.rollupMatchResultDescriptions() : undefined
75+
sqlGenerator.preAggregations.rollupMatchResultDescriptions() : undefined,
76+
canUseTransformedQuery: sqlGenerator.preAggregations.canUseTransformedQuery()
7677
}));
7778
}
7879

0 commit comments

Comments
 (0)