druid-io / pydruid

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

Support for only lower bound #175

Closed JiHyeongSeo closed 4 years ago

JiHyeongSeo commented 4 years ago

group = query.groupby( datasource='datasource', granularity='hour', intervals='2019-08-01/2019-08-07', dimensions=["dimensionl"], filter=((Dimension("id") == 122) & (Bound(Dimension("seconds"), 0, alphaNumeric=True))), aggregations={"count": doublesum("count")} )

when I run above code, type error raise like this TypeError: __init__() missing 1 required positional argument: 'upper'

But, in druid documentation (https://druid.apache.org/docs/latest/querying/filters.html) Likewise, this filter expresses age >= 18 json { "type": "bound", "dimension": "age", "lower": "18" , "ordering": "numeric" } above expression is correct.

I think only lower bound expression should be supported.