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 9f154d0 commit fd912a1Copy full SHA for fd912a1
packages/cubejs-schema-compiler/src/compiler/CubeEvaluator.ts
@@ -731,6 +731,18 @@ export class CubeEvaluator extends CubeSymbols {
731
return !!this.evaluatedCubes[cube];
732
}
733
734
+ public memberShortNameFromPath(path: string | string[]): string {
735
+ if (!Array.isArray(path)) {
736
+ path = path.split('.');
737
+ }
738
+
739
+ if (path.length < 2) {
740
+ throw new UserError(`Not full member name provided: ${path[0]}`);
741
742
743
+ return `${path.at(-2)}.${path.at(-1)}`;
744
745
746
public cubeFromPath(path: string): EvaluatedCube {
747
return this.evaluatedCubes[this.cubeNameFromPath(path)];
748
0 commit comments