Fix the min >= start and max <= end case (WIP)

This fixes the 'should get bins with min >= start and max <= end' test
case but probably breaks a number of other cases (those with no start
and/or no end).
This commit is contained in:
Rafa de la Torre
2018-07-05 11:56:26 +02:00
parent 6411556a97
commit d937ce4982
@@ -135,7 +135,7 @@ SELECT
END AS bin
FROM
(
${ctx.query}
SELECT * FROM (${ctx.query}) __ctx_query WHERE ${ctx.column} >= ${ctx.start} AND ${ctx.column} <= ${ctx.end}
) __cdb_filtered_source_query${extra_tables}
GROUP BY 10${extra_groupby}
ORDER BY 10;`;