make happy to jshint
This commit is contained in:
parent
bbd42b73f2
commit
af4b3d81cd
@ -2,7 +2,7 @@ var _ = require('underscore');
|
|||||||
var BaseWidget = require('./base');
|
var BaseWidget = require('./base');
|
||||||
var debug = require('debug')('windshaft:dataview:histogram');
|
var debug = require('debug')('windshaft:dataview:histogram');
|
||||||
|
|
||||||
const columnCastTpl = ctx => `date_part('epoch', ${ctx.column})`
|
const columnCastTpl = ctx => `date_part('epoch', ${ctx.column})`;
|
||||||
|
|
||||||
const dateIntervalQueryTpl = ctx => `
|
const dateIntervalQueryTpl = ctx => `
|
||||||
WITH
|
WITH
|
||||||
@ -185,8 +185,10 @@ const histogramQueryTpl = ctx => `
|
|||||||
max(${ctx._column})::numeric AS max,
|
max(${ctx._column})::numeric AS max,
|
||||||
avg(${ctx._column})::numeric AS avg,
|
avg(${ctx._column})::numeric AS avg,
|
||||||
count(*) AS freq
|
count(*) AS freq
|
||||||
FROM __cdb_filtered_source, __cdb_basics, __cdb_nulls, __cdb_bins ${ctx._isFloatColumn ? `, ${specialNumericValuesCTETpl()}` : ''}
|
FROM __cdb_filtered_source, __cdb_basics, __cdb_nulls, __cdb_bins
|
||||||
GROUP BY bin, bins_number, bin_width, nulls_count, avg_val${ctx._isFloatColumn ? `, ${specialNumericValuesColumnTpl()}` : ''}
|
${ctx._isFloatColumn ? `, ${specialNumericValuesCTETpl()}` : ''}
|
||||||
|
GROUP BY bin, bins_number, bin_width, nulls_count, avg_val
|
||||||
|
${ctx._isFloatColumn ? `, ${specialNumericValuesColumnTpl()}` : ''}
|
||||||
ORDER BY bin
|
ORDER BY bin
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user