druid-io / pydruid

A Python connector for Druid
Other
506 stars 194 forks source link

Add Having Type dimSelector, filter #202

Closed SongYunSeop closed 4 years ago

SongYunSeop commented 4 years ago

I'd like to add to having type dimSelector and filter.

{
    "queryType": "groupBy",
    "dataSource": "sample_datasource",
    ...
    "having":
       {
            "type": "dimSelector",
            "dimension": "<dimension>",
            "value": <dimension_value>
        }
}
{
    "queryType": "groupBy",
    "dataSource": "sample_datasource",
    ...
    "having":
        {
            "type" : "filter",
            "filter" : <any Druid query filter>
        }
}

And I could create pull request about that.

Ref

SongYunSeop commented 4 years ago

@mistercrunch Can you please review this PR?