You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/08/02 04:01:13 UTC

[GitHub] vogievetsky commented on issue #6023: Full ISO 8601 compatibility in query intervals

vogievetsky commented on issue #6023: Full ISO 8601 compatibility in query intervals
URL: https://github.com/apache/incubator-druid/issues/6023#issuecomment-409798621
 
 
   Just wanted to note here that this is possible in [DSQL](http://druid.io/docs/latest/querying/sql.html):
   
   You can issue a query like:
   
   ```
   SELECT "channel", COUNT(*) AS "Count"
   FROM "wikipedia"
   WHERE "__time" >= CURRENT_TIMESTAMP - INTERVAL '1' DAY
   GROUP BY "channel"
   ORDER BY "Count" DESC
   ```
   
   for example to get the last day of data. In general doing computations with CURRENT_TIMESTAMP can be very powerful.
   
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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