It is already implemented as part of http://druid.io/docs/latest/misc/math-expr.html Please expose it in SQL. In the meantime one can do: `CASE WHEN X - FLOOR(X) < 0.5 THEN FLOOR(X) ELSE CEIL(X) END`
It is already implemented as part of http://druid.io/docs/latest/misc/math-expr.html
Please expose it in SQL.
In the meantime one can do:
CASE WHEN X - FLOOR(X) < 0.5 THEN FLOOR(X) ELSE CEIL(X) END