druid-io / pydruid

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

client.scan how to change resolution from minute to hour? #266

Open sofiavaldez77 opened 3 years ago

sofiavaldez77 commented 3 years ago

Hi! I'm trying to use client.scan for a time range of 5 days to output the mean values from a "value" column for every 1 hour (the average value over that hour or the value at that hour?). But right now, it outputs the results for every minute. I tried changing "granularity" to hour but that doesn't change anything.

Anyone know how to change the resolution?

jung-hunsoo commented 1 year ago

Having same trouble, too. I presume scan() doesn't supprt granularity option. Instead others like timestamp() do.