druid-io / pydruid

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

time_boundary query: Discrepancy between Druid functionality and PyDruid #264

Open sebtrack opened 3 years ago

sebtrack commented 3 years ago

According to the docs, there are more valid properties than datasource only:

{
    "queryType" : "timeBoundary",
    "dataSource": "sample_datasource",
    "bound"     : < "maxTime" | "minTime" > # optional, defaults to returning both timestamps if not set
    "filter"    : { "type": "and", "fields": [<filter>, <filter>, ...] } # optional
}

https://github.com/druid-io/pydruid/blob/98cab4d9c2a08a35667b26a15dee21bdb77422b4/pydruid/query.py#L441-L453

GuidoTournois commented 2 years ago

I guess, since bound and filter are optional, these are not taken into consideration when validating the query