world-federation-of-advertisers / cardinality_estimation_evaluation_framework

Evaluation framework and methods for estimating cardinalities of groups of sets
Apache License 2.0
22 stars 9 forks source link

Handle the corner case with zero or negative histogram #124

Closed jiayu-google closed 3 years ago

jiayu-google commented 3 years ago

In SameKeyAggregator, if sum(histogram) = 0 (for example, when there is no active register), an error will occur and block the rest of the planning evaluation. The PR gets around this corner case.