I tested it for groupBy and found following behavior.
Having clause eval function receives row with unfinalized values. So, if you had a hyperUnique or thetaSketch aggregator and applied having on same then that doesn't work. A workaround is to have a post aggregator in the query that finalizes the aggregator value(and creates a number or a type that Having impls understand) and then ask for having on this post aggregator.
One of my users got bitten by it and generally user expectation would be that it should just work. Not sure if above workaround should be the official answer or we should consider it a bug.
I tested it for groupBy and found following behavior.
Having clause eval function receives row with
unfinalizedvalues. So, if you had ahyperUniqueorthetaSketchaggregator and appliedhavingon same then that doesn't work. A workaround is to have a post aggregator in the query that finalizes the aggregator value(and creates a number or a type that Having impls understand) and then ask forhavingon this post aggregator.One of my users got bitten by it and generally user expectation would be that it should just work. Not sure if above workaround should be the official answer or we should consider it a bug.