Open chundongwang opened 3 years ago
With the help from @npawar (thanks!), I got it to work. So to sum up,
Avg
/Sum
/PercentileTDigest##
would all require double
so need to convert the groovy return to be double
, which means all possible return values should be cast to double
(eg using column_name.toDouble()
) ;0.0
, in the query which I assumed to make it double. Actually that became a BigDecimal
and cause issue. So instead I used 0d and second exception is gone.
I’m getting
NPE
inGroupByOrderByCombineOperator.getNextBlock
when the query does aggregation on top of groovy function, no matter which column I group-by with (eg dimension, datetime), or what aggregation function I use (eg AVG, SUM). The query would look like,Without
group by
, aforementionedgroovy
function works fine with enough records.Expected results
Expect aggreation on top of transform would work for groovy just like other transform function like
ADD
orSUB
Actual results
NPE thrown as,
UPDATE1: We're running v0.5.0