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:
@@ -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;`;
|
||||
|
||||
Reference in New Issue
Block a user