You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "pasqualtroncone (via GitHub)" <gi...@apache.org> on 2023/08/31 01:34:13 UTC
[GitHub] [superset] pasqualtroncone commented on issue #19154: No result when range is less than a day with Clickhouse
pasqualtroncone commented on issue #19154:
URL: https://github.com/apache/superset/issues/19154#issuecomment-1700201059
@rusackas looks like the same thing I just posted here: https://github.com/apache/superset/issues/19404#issuecomment-1700171750.
Look at the query @vincentbernat posted
```sql
SELECT toStartOfMinute(toDateTime("TimeReceived")) AS __timestamp,
"SrcAS" AS "SrcAS",
SUM(Bytes*SamplingRate) AS "Bytes"
FROM "default".flows
WHERE "Date" >= toDate('2022-03-15')
AND "Date" < toDate('2022-03-15')
AND "TimeReceived" >= toDateTime('2022-03-15 08:27:07')
AND "TimeReceived" < toDateTime('2022-03-15 14:27:07')
GROUP BY "SrcAS",
toStartOfMinute(toDateTime("TimeReceived"))
ORDER BY "Bytes" DESC
LIMIT 10000
```
It was double filter by Dates which is likely to result in no matches being returned.
I bet `Date`field is the default datetime column on the **Dataset** and TimeReceived is the TIME COLUMN of the chart. @vincentbernat can you confirm ?
--
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