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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to