@cubejs-backend/schema-compiler 1.8.25 → 1.8.27

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.
@@ -1941,7 +1941,7 @@ class BaseQuery {
1941
1941
  return { prefix, subQuery, cubeName };
1942
1942
  }
1943
1943
  subQueryName(cubeName, name) {
1944
- return `${cubeName}_${name}_subquery`;
1944
+ return `${this.cubeEvaluator.cubeFromPath(cubeName).sqlAlias || cubeName}_${name}_subquery`;
1945
1945
  }
1946
1946
  regularMeasuresSubQuery(measures, filters) {
1947
1947
  filters = filters || this.allFilters;