Skip to content

Commit

Permalink
feat: Log canUseTransformedQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Mar 24, 2020
1 parent 29b7641 commit 5b2ab90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/cubejs-schema-compiler/adapter/PreAggregations.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ class PreAggregations {
}));
}

canUseTransformedQuery() {
return PreAggregations.transformQueryToCanUseForm(this.query);
}

static hasCumulativeMeasures(query) {
const measures = (query.measures.concat(query.measureFilters));
return R.pipe(
Expand Down
3 changes: 2 additions & 1 deletion packages/cubejs-server-core/core/CompilerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class CompilerApi {
dataSource: sqlGenerator.dataSource,
aliasNameToMember: sqlGenerator.aliasNameToMember,
rollupMatchResults: includeDebugInfo ?
sqlGenerator.preAggregations.rollupMatchResultDescriptions() : undefined
sqlGenerator.preAggregations.rollupMatchResultDescriptions() : undefined,
canUseTransformedQuery: sqlGenerator.preAggregations.canUseTransformedQuery()
}));
}

Expand Down

0 comments on commit 5b2ab90

Please sign in to comment.