We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f7acc7 commit 3a52ed9Copy full SHA for 3a52ed9
packages/cubejs-schema-compiler/src/adapter/PreAggregations.ts
@@ -996,7 +996,11 @@ export class PreAggregations {
996
997
// TODO join hints?
998
const existingJoins = preAggObjsToJoin
999
- .map(p => this.resolveJoinMembers(this.query.joinGraph.buildJoin(this.cubesFromPreAggregation(p))!))
+ .map(p => this.resolveJoinMembers(
1000
+ this.query.joinGraph.buildJoin(
1001
+ this.collectJoinHintsFromRollupReferences(p.references).concat(this.cubesFromPreAggregation(p))
1002
+ )!
1003
+ ))
1004
.flat();
1005
1006
const nonExistingJoins = targetJoins.filter(target => !existingJoins.find(
0 commit comments