Skip to content

Having clause does not work on complex aggregators #4859

@himanshug

Description

@himanshug

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions