From 6eef017b0753f5064fb2bd34d125ee584e1d06da Mon Sep 17 00:00:00 2001 From: Konstantin Burkalev Date: Mon, 9 Sep 2024 19:09:22 +0300 Subject: [PATCH] fix proxying items, referenced from different cubes/views --- packages/cubejs-schema-compiler/src/compiler/CubeSymbols.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cubejs-schema-compiler/src/compiler/CubeSymbols.js b/packages/cubejs-schema-compiler/src/compiler/CubeSymbols.js index 0e6b603379ca8..43bf8680477dd 100644 --- a/packages/cubejs-schema-compiler/src/compiler/CubeSymbols.js +++ b/packages/cubejs-schema-compiler/src/compiler/CubeSymbols.js @@ -548,7 +548,7 @@ export class CubeSymbols { if (refProperty) { return () => this.withSymbolsCallContext( () => sqlResolveFn(cube[refProperty], cubeName, refProperty), - { ...this.resolveSymbolsCallContext } + { ...this.resolveSymbolsCallContext, joinHints } ); } @@ -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);