Skip to content

Commit

Permalink
fix proxying items, referenced from different cubes/views
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Sep 12, 2024
1 parent 765f39d commit 6eef017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cubejs-schema-compiler/src/compiler/CubeSymbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export class CubeSymbols {
if (refProperty) {
return () => this.withSymbolsCallContext(
() => sqlResolveFn(cube[refProperty], cubeName, refProperty),
{ ...this.resolveSymbolsCallContext }
{ ...this.resolveSymbolsCallContext, joinHints }
);
}

Expand Down Expand Up @@ -582,7 +582,7 @@ export class CubeSymbols {
};
}
if (cube[propertyName]) {
return this.cubeReferenceProxy(cubeName, undefined, propertyName);
return this.cubeReferenceProxy(cubeName, joinHints, propertyName);
}
if (self.symbols[propertyName]) {
return this.cubeReferenceProxy(propertyName, joinHints);
Expand Down

0 comments on commit 6eef017

Please sign in to comment.