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);
|
||||
}
|
||||
|
||||
_buildDateHistogramQueryTpl (ctx) {
|
||||
_buildQueryTpl (ctx) {
|
||||
return `
|
||||
WITH
|
||||
${ctx._override && ctx._override.hasOwnProperty('start') && ctx._override.hasOwnProperty('end') ?
|
||||
@ -253,7 +253,7 @@ module.exports = class DateHistogram extends BaseDataview {
|
||||
return null;
|
||||
}
|
||||
|
||||
const histogramSql = this._buildDateHistogramQueryTpl({
|
||||
const histogramSql = this._buildQueryTpl({
|
||||
_override: override,
|
||||
_query: this.query,
|
||||
_column: this.column,
|
||||
|
Loading…
Reference in New Issue
Block a user