removing category cast to string in aggregation

This commit is contained in:
Simon Martín 2018-01-26 12:37:10 +01:00
parent 767dde0b1e
commit bc7a556297

View File

@ -74,7 +74,7 @@ const specialNumericValuesColumns = () => `, nans_count, infinities_count`;
const rankedAggregationQueryTpl = ctx => ` const rankedAggregationQueryTpl = ctx => `
SELECT SELECT
CAST(category AS text), category,
value, value,
false as agg, false as agg,
nulls_count, nulls_count,
@ -109,7 +109,7 @@ const rankedAggregationQueryTpl = ctx => `
const aggregationQueryTpl = ctx => ` const aggregationQueryTpl = ctx => `
SELECT SELECT
CAST(${ctx.column} AS text) AS category, ${ctx.column} AS category,
${ctx.aggregationFn} AS value, ${ctx.aggregationFn} AS value,
false as agg, false as agg,
nulls_count, nulls_count,