Skip to content

Commit c4a599b

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 c4a599b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ 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 ? [] :
222+
sqlGenerator.preAggregations.preAggregationsDescription(),
222223
dataSource: sqlGenerator.dataSource,
223224
aliasNameToMember: sqlGenerator.aliasNameToMember,
224225
rollupMatchResults: includeDebugInfo ?

0 commit comments

Comments
 (0)