File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed 
packages/cubejs-schema-compiler/src/adapter Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -2159,15 +2159,16 @@ export class BaseQuery {
21592159    const  memberPathArray  =  [ cubeName ,  name ] ; 
21602160    const  memberPath  =  this . cubeEvaluator . pathFromArray ( memberPathArray ) ; 
21612161    let  type  =  memberExpressionType ; 
2162-     if  ( ! type   &&   this . cubeEvaluator . isMeasure ( memberPathArray ) )  { 
2163-       type   =   'measure' ; 
2164-     } 
2165-     if   ( ! type   &&   this . cubeEvaluator . isDimension ( memberPathArray ) )  { 
2166-       type  =  'dimension' ; 
2167-     } 
2168-     if   ( ! type   &&   this . cubeEvaluator . isSegment ( memberPathArray ) )   { 
2169-       type   =   'segment' ; 
2162+     if  ( ! type )  { 
2163+       if   ( this . cubeEvaluator . isMeasure ( memberPathArray ) )   { 
2164+          type   =   'measure' ; 
2165+        }   else   if   ( this . cubeEvaluator . isDimension ( memberPathArray ) )  { 
2166+          type  =  'dimension' ; 
2167+        }   else   if   ( this . cubeEvaluator . isSegment ( memberPathArray ) )   { 
2168+          type   =   'segment' ; 
2169+       } 
21702170    } 
2171+ 
21712172    const  parentMember  =  this . safeEvaluateSymbolContext ( ) . currentMember ; 
21722173    if  ( this . safeEvaluateSymbolContext ( ) . memberChildren  &&  parentMember )  { 
21732174      this . safeEvaluateSymbolContext ( ) . memberChildren [ parentMember ]  =  this . safeEvaluateSymbolContext ( ) . memberChildren [ parentMember ]  ||  [ ] ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments