[GitHub] gianm commented on issue #6108: more examples needed for druid sql

2018-08-06 Thread GitBox
gianm commented on issue #6108: more examples needed for druid sql
URL: 
https://github.com/apache/incubator-druid/issues/6108#issuecomment-410796733
 
 
   > @gianm regarding 4. is the behavior of native queries (topn, timeseries, 
groupby) the same as sql for this case? in that will they omit 10-11 from the 
results too?
   
   topN and groupBy will; for timeseries it depends on the skipEmptyBuckets 
setting.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org



[GitHub] gianm commented on issue #6108: more examples needed for druid sql

2018-08-05 Thread GitBox
gianm commented on issue #6108: more examples needed for druid sql
URL: 
https://github.com/apache/incubator-druid/issues/6108#issuecomment-410550232
 
 
   > I have one example query for "wikipedia top pages" in the new tutorials 
(the idea was more to show the tools/workflow vs being a tutorial on expressing 
queries in SQL, do you have any suggestions for common queries that would be 
good examples?
   
   Maybe four queries: one that plans to a scan, one that plans to a 
timeseries, one that plans to a topN, and one that plans to a groupBy?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org



[GitHub] gianm commented on issue #6108: more examples needed for druid sql

2018-08-05 Thread GitBox
gianm commented on issue #6108: more examples needed for druid sql
URL: 
https://github.com/apache/incubator-druid/issues/6108#issuecomment-410550178
 
 
   (3) sounds like it's really the same question as (2), and TIME_FLOOR is the 
answer. (4) adheres to standard SQL: result rows are only emitted where there 
is actual data. So there would be no row for 10am–11am.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org



[GitHub] gianm commented on issue #6108: more examples needed for druid sql

2018-08-05 Thread GitBox
gianm commented on issue #6108: more examples needed for druid sql
URL: 
https://github.com/apache/incubator-druid/issues/6108#issuecomment-410543659
 
 
   Hi @pdeva, the answers to your questions are,
   
   1. A time filter looks like `__time >= TIMESTAMP '2000-01-01 00:00:00' AND 
__time < TIMESTAMP '2000-01-02 00:00:00'`.
   2. If you group by a `TIME_FLOOR` function, that's like specifying 
granularity.
   3. Not sure what you mean by this?
   4. Not sure what you mean by this?
   5. They are undocumented, but they won't be for long. 
http://druid.io/docs/latest/misc/math-expr.html might help you understand what 
they're doing.
   
   I agree an examples section would be nice; @jon-wei was working on some new 
tutorials for querying, maybe he can chime in with whether he had planned on 
adding SQL examples.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org