Skip to content

Commit 0adc634

Browse files
committed
fix: Content version gets updated on build range change
1 parent 1d00521 commit 0adc634

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ export class PreAggregationLoader {
786786
}
787787

788788
protected contentVersion(invalidationKeys) {
789-
const versionArray = [this.preAggregation.loadSql];
789+
const versionArray = [this.preAggregation.structureVersionLoadSql || this.preAggregation.loadSql];
790790
if (this.preAggregation.indexesSql && this.preAggregation.indexesSql.length) {
791791
versionArray.push(this.preAggregation.indexesSql);
792792
}

packages/cubejs-query-orchestrator/test/unit/QueryOrchestrator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ describe('QueryOrchestrator', () => {
12231223
expect(result.data[0]).toMatch(/orders_d20210501/);
12241224
expect(result.data[0]).not.toMatch(/orders_h2021053000/);
12251225
expect(result.data[0]).toMatch(/orders_h2021053100/);
1226-
expect(result.data[0]).toMatch(/orders_h2021060100_2i3ibaj2_d004iq51/);
1226+
expect(result.data[0]).toMatch(/orders_h2021060100_uozkyaur_d004iq51/);
12271227

12281228
result = await queryOrchestrator.fetchQuery(query(['2021-05-31T00:00:00.000', '2021-05-31T23:59:59.999']));
12291229
console.log(JSON.stringify(result, null, 2));

0 commit comments

Comments
 (0)