You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/09/06 23:46:49 UTC

[GitHub] [incubator-superset] cachafla commented on issue #8183: How to pass time filters to SQL Lab queries

cachafla commented on issue #8183: How to pass time filters to SQL Lab queries
URL: https://github.com/apache/incubator-superset/issues/8183#issuecomment-529048575
 
 
   > I managed to solve this with the BETWEEN SQL command. For example:
   > 
   > ```
   > SELECT 'some_column'
   > WHERE ('time_column' BETWEEN '2019-08-30T16:00:00.0Z' AND '2019-09-5T8:00:00.0Z')
   > ```
   > 
   > Keep in mind this was in the SQL Lab. Hope this helps.
   
   The issue I have is that the value of `time_column` could be "Last year" or something like "2019-08-30T16:00:00.0Z : 2019-09-5T8:00:00.0Z" when a time range is selected. It makes it so either use `BETWEEN` or have to parse the relative date string.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org