@cubejs-backend/schema-compiler 1.2.34 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import type { BaseQuery } from './BaseQuery';
2
- import { MeasureDefinition } from "../compiler/CubeEvaluator";
2
+ import { MeasureDefinition } from '../compiler/CubeEvaluator';
3
3
  export declare class BaseMeasure {
4
4
  protected readonly query: BaseQuery;
5
5
  readonly measure: any;
@@ -1872,7 +1872,7 @@ class BaseQuery {
1872
1872
  }
1873
1873
  pushMemberNameForCollectionIfNecessary(cubeName, name) {
1874
1874
  const pathFromArray = this.cubeEvaluator.pathFromArray([cubeName, name]);
1875
- if (this.cubeEvaluator.byPathAnyType(pathFromArray).ownedByCube) {
1875
+ if (!this.cubeEvaluator.getCubeDefinition(cubeName).isView) {
1876
1876
  const joinHints = this.cubeEvaluator.joinHints();
1877
1877
  if (joinHints && joinHints.length) {
1878
1878
  joinHints.forEach(cube => this.pushCubeNameForCollectionIfNecessary(cube));