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 2022/03/29 08:31:36 UTC
[GitHub] [superset] moathOSA opened a new issue #19404: time filter applieed twice when using time series charts
moathOSA opened a new issue #19404:
URL: https://github.com/apache/superset/issues/19404
im using time and pass it t my query
when using the time charts you have to chose the time column
when using the time column and the time filter the time condition will execute twice !
this is how the generated query look like
```
AND derived_tstamp >= '2022-02-28T00:00:00'
AND derived_tstamp < '2022-03-29T00:00:00'
group by domain_sessionid
order by user_sessions desc) AS virtual_table
WHERE time >= TO_TIMESTAMP('2022-02-28 00:00:00.000000', 'YYYY-MM-DD HH24:MI:SS.US')
AND time < TO_TIMESTAMP('2022-03-29 00:00:00.000000', 'YYYY-MM-DD HH24:MI:SS.US')
GROUP BY DATE_TRUNC('day', time)
```
this how my query
```
{# Render a blank line #}
{% if from_dttm != None %}
AND derived_tstamp >= '{{ from_dttm }}' AND derived_tstamp < '{{ to_dttm }}'
{% endif %}
```
superset vresion 1.4.1
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [ ] I have reproduced the issue with at least the latest released version of superset.
- [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org