rename _buildDateHistogramQueryTpl by _buildQueryTpl
This commit is contained in:
parent
347dea8f66
commit
3441ad6aa9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user