druid-io / pydruid

A Python connector for Druid
Other
509 stars 200 forks source link

Support for search and like filters #156

Closed Makesh-Gmak closed 5 years ago

Makesh-Gmak commented 5 years ago

Added new filters "search" and "like" filters. Usage:

group = query.groupby(
    datasource="wikipedia",
    ......
    ...
    filter= Filter(type="search", dimension="user", value='AZ', caseSensitive='true') 
                   &        Filter(type="like", dimension="dim", pattern="John%"),
    ....
    .......

)

More Info : http://druid.io/docs/latest/querying/filters.html

mistercrunch commented 5 years ago

LGTM, thank you for this contribution