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 54ee729 commit c14aad6Copy full SHA for c14aad6
packages/cubejs-schema-compiler/src/compiler/CubeEvaluator.ts
@@ -556,6 +556,9 @@ export class CubeEvaluator extends CubeSymbols {
556
if (funcArgs.length > 0 && cubeReferencesUsed.length === 0) {
557
ownedByCube = false;
558
}
559
+ if (member.type && member.type === 'switch') {
560
+ ownedByCube = false;
561
+ }
562
// Aliases one to one some another member as in case of views
563
// Note: Segments do not have type set
564
if (!ownedByCube && !member.filters && (!member.type || CubeSymbols.isCalculatedMeasureType(member.type)) && pathReferencesUsed.length === 1 && this.pathFromArray(pathReferencesUsed[0]) === evaluatedSql) {
0 commit comments