Use template string for columnCastTpl
This commit is contained in:
parent
4f75f6c07b
commit
8e2535745e
@ -5,7 +5,7 @@ var debug = require('debug')('windshaft:dataview:histogram');
|
||||
var dot = require('dot');
|
||||
dot.templateSettings.strip = false;
|
||||
|
||||
var columnCastTpl = dot.template("date_part('epoch', {{=it.column}})");
|
||||
var columnCastTpl = ctx => `date_part('epoch', ${ctx.column})`
|
||||
|
||||
const dateIntervalQueryTpl = ctx => `
|
||||
WITH
|
||||
|
Loading…
Reference in New Issue
Block a user