Skip to content

Commit 11f5bb6

Browse files
committed
fix(api-gateway): Do not collect disabled external pre-aggregations
Signed-off-by: Alex Qyoun-ae <[email protected]>
1 parent 9274201 commit 11f5bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export class CompilerApi {
218218
timeDimensionField: sqlGenerator.timeDimensions[0]?.dimension,
219219
order: sqlGenerator.order,
220220
cacheKeyQueries: sqlGenerator.cacheKeyQueries(),
221-
preAggregations: sqlGenerator.preAggregations.preAggregationsDescription(),
221+
preAggregations: query.disableExternalPreAggregations ? [] : sqlGenerator.preAggregations.preAggregationsDescription(),
222222
dataSource: sqlGenerator.dataSource,
223223
aliasNameToMember: sqlGenerator.aliasNameToMember,
224224
rollupMatchResults: includeDebugInfo ?

0 commit comments

Comments
 (0)