rename _buildDateHistogramQueryTpl by _buildQueryTpl

This commit is contained in:
Simon 2017-09-08 12:04:25 +02:00
parent 347dea8f66
commit 3441ad6aa9

View File

@ -218,7 +218,7 @@ module.exports = class DateHistogram extends BaseDataview {
return this._columnType === 'date' && (this.aggregation !== undefined || override.aggregation !== undefined); return this._columnType === 'date' && (this.aggregation !== undefined || override.aggregation !== undefined);
} }
_buildDateHistogramQueryTpl (ctx) { _buildQueryTpl (ctx) {
return ` return `
WITH WITH
${ctx._override && ctx._override.hasOwnProperty('start') && ctx._override.hasOwnProperty('end') ? ${ctx._override && ctx._override.hasOwnProperty('start') && ctx._override.hasOwnProperty('end') ?
@ -253,7 +253,7 @@ module.exports = class DateHistogram extends BaseDataview {
return null; return null;
} }
const histogramSql = this._buildDateHistogramQueryTpl({ const histogramSql = this._buildQueryTpl({
_override: override, _override: override,
_query: this.query, _query: this.query,
_column: this.column, _column: this.column,