From dc8d2a51cc96698901c268491c8dd3810e11919c Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Wed, 13 Mar 2024 16:54:06 +0100 Subject: [PATCH] fix(query-orchestrator): Correct handling for forceBuild flag, fix #7726 --- .../src/orchestrator/PreAggregations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts b/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts index 361070449665c..9e0c5cd90beae 100644 --- a/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts +++ b/packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts @@ -664,7 +664,7 @@ export class PreAggregationLoader { }; } - if (!this.waitForRenew) { + if (!this.waitForRenew && !this.forceBuild) { const versionEntryByStructureVersion = versionEntries.byStructure[`${this.preAggregation.tableName}_${structureVersion}`]; if (versionEntryByStructureVersion) { const targetTableName = this.targetTableName(versionEntryByStructureVersion);