Skip to content

Commit d7e7a57

Browse files
committed
fix: Refresh Scheduler should respect dataSource
1 parent c128417 commit d7e7a57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class RefreshScheduler {
1414
const orchestratorApi = this.serverCore.getOrchestratorApi({ ...context, dataSource });
1515
const [startDate, endDate] =
1616
await Promise.all(
17-
query
17+
compilerApi.createQueryByDataSource(compilers, queryingOptions, dataSource)
1818
.preAggregationStartEndQueries(preAggregation.cube, preAggregation.preAggregation)
1919
.map(sql => orchestratorApi.executeQuery({
2020
query: sql[0],

0 commit comments

Comments
 (0)