@cubejs-backend/schema-compiler
Advanced tools
Comparing version 0.3.1 to 0.3.4
@@ -72,3 +72,2 @@ /* eslint-disable no-unused-vars,prefer-template */ | ||
this.cubeAliasPrefix = this.options.cubeAliasPrefix; | ||
this.subQueryDimensions = this.collectFromMembers(false, this.collectSubQueryDimensionsFor.bind(this)); | ||
this.preAggregationsSchemaOption = | ||
@@ -82,2 +81,9 @@ this.options.preAggregationsSchema != null ? this.options.preAggregationsSchema : DEFAULT_PREAGGREGATIONS_SCHEMA; | ||
get subQueryDimensions() { | ||
if (!this._subQueryDimensions) { | ||
this._subQueryDimensions = this.collectFromMembers(false, this.collectSubQueryDimensionsFor.bind(this)); | ||
} | ||
return this._subQueryDimensions; | ||
} | ||
defaultOrder() { | ||
@@ -150,5 +156,7 @@ if (this.options.preAggregationQuery) { | ||
buildParamAnnotatedSql() { | ||
const preAggregationForQuery = this.preAggregations.findPreAggregationForQuery(); | ||
if (preAggregationForQuery && !this.options.preAggregationQuery) { | ||
return this.preAggregations.rollupPreAggregation(preAggregationForQuery); | ||
if (!this.options.preAggregationQuery) { | ||
const preAggregationForQuery = this.preAggregations.findPreAggregationForQuery(); | ||
if (preAggregationForQuery) { | ||
return this.preAggregations.rollupPreAggregation(preAggregationForQuery); | ||
} | ||
} | ||
@@ -669,13 +677,3 @@ return this.fullKeyQueryAggregate(); | ||
/** | ||
* Use collectCubeNames instead | ||
* @param excludeTimeDimensions | ||
* @returns {*} | ||
* @deprecated | ||
*/ | ||
collectCubeNames(excludeTimeDimensions) { | ||
return this.collectCubeNames(excludeTimeDimensions); | ||
} | ||
collectCubeNames(excludeTimeDimensions) { | ||
return this.collectFromMembers(excludeTimeDimensions, this.collectCubeNamesFor.bind(this)); | ||
@@ -682,0 +680,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Statsbot, Inc.", | ||
"version": "0.3.1", | ||
"version": "0.3.4", | ||
"engines": { | ||
@@ -33,3 +33,3 @@ "node": ">=8.11.1" | ||
"license": "Apache-2.0", | ||
"gitHead": "fd69ad6e3fcdeab323932b56211cb5733727cf3a" | ||
"gitHead": "7961140cbd34a276cae079aff9e2e32510105f0d" | ||
} |
248766
6782