diff --git a/lib/cartodb/models/dataview/numeric-histogram.js b/lib/cartodb/models/dataview/numeric-histogram.js index 55368f6d..59400a00 100644 --- a/lib/cartodb/models/dataview/numeric-histogram.js +++ b/lib/cartodb/models/dataview/numeric-histogram.js @@ -207,7 +207,7 @@ module.exports = class NumericHistogram extends BaseDataview { _buildQuery (psql, override, callback) { - const histogramSql = this.buildQueryTpl({ + const histogramSql = this._buildQueryTpl({ _override: override, _column: this._columnType === 'date' ? columnCastTpl({ column: this.column }) : this.column, _isFloatColumn: this._columnType === 'float', @@ -223,7 +223,7 @@ module.exports = class NumericHistogram extends BaseDataview { return callback(null, histogramSql); } - buildQueryTpl (ctx) { + _buildQueryTpl (ctx) { return ` WITH ${filteredQueryTpl(ctx)},