Wei Li
08/09/2022, 10:34 PMcount(a) / count(b)
to 0 when count(b) = 0
instead of NaN
or Infinity
? Nan
and Infinity
isn’t really sort friendly.Mayank
Wei Li
08/10/2022, 4:52 PMKishore G
@ScalarFunction
public static double divide(double a, double b) {
return a / b;
}
Kishore G
Kishore G
Wei Li
08/10/2022, 5:29 PMMayank
Wei Li
08/10/2022, 5:38 PMWei Li
08/10/2022, 5:39 PMKishore G
Wei Li
08/10/2022, 5:44 PMJackie
08/10/2022, 6:59 PMcase
function, which is not supported on post-aggregation yetJackie
08/10/2022, 6:59 PMcase
to support itJackie
08/10/2022, 7:01 PMdivide(double a, double b, double default)
, then use divide(count(a), count(b), 0)
in the queryWei Li
08/11/2022, 12:37 AMWei Li
08/16/2022, 10:17 PMMayank
Wei Li
08/16/2022, 10:19 PMMayank
Luis Fernandez
03/01/2023, 7:33 PM0.11
and are facing this issue, what can we do to over come this? @Mayank @Jackie use DIVIDE() with denominator being 0.Luis Fernandez
03/01/2023, 8:00 PM