Skip to content

Commit

Permalink
fix: Refresh Scheduler should respect dataSource
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Aug 19, 2020
1 parent c128417 commit d7e7a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/core/RefreshScheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RefreshScheduler {
const orchestratorApi = this.serverCore.getOrchestratorApi({ ...context, dataSource });
const [startDate, endDate] =
await Promise.all(
query
compilerApi.createQueryByDataSource(compilers, queryingOptions, dataSource)
.preAggregationStartEndQueries(preAggregation.cube, preAggregation.preAggregation)
.map(sql => orchestratorApi.executeQuery({
query: sql[0],
Expand Down

0 comments on commit d7e7a57

Please sign in to comment.