Bin with personalized interval
Hello,
in case of time series based on a timestamp column with 15 minutes interval rate ( 00, 15, 30, 45), is it possible to draw a combo chart ordered by date and counting rows in between each interval ?
In this scenario, if the timestamp is a date, I only can use the default binning choice (Days, hours, minutes, and so on), and therefore the count is incorrect because e.g. all the four interval ( 00, 15, 30, 45) are added, if binning over hours.
If the timestamp is casted to TEXT, no ordering is made anymore.
So, in theory, I should be able to bin by the personalized interval time, or bin by DATE_TRUNC(minutes, timestamp_column).
I hope I've been clear, someone has some idea on how to achieve the desired result in Immerse?
Thanks in advance
-
Hi Candido,
I can create a custom dimension, but if I disable the Bin, the chart it is not ordered by date anymore: it is ordered by descending number of count rows. Is it correct ? I still need to order by date.As a side note, my custom dimension builder is a little different from your. No "scope" input.
Immerse version 7.1.1
it seems that my Custom Dimension Editor is different from your:
-
Thanks for the solution, it works , but I'm hitting the
"Could not render chart
Sorting the result would be too slow"
error since I started working with the sorting in the Data and formatting tab in Legend and setting.Using only 4.3 M rows table, 10 groups, and filtered only for a few thousand rows:
Any hints?
-
Hi Gianfranco,
I hope this message finds you well. I'm seeking clarification on whether the dashboard is functioning with the watchdog turned off. There are two conditions that can trigger the reported exception, and in both cases, the number of rows to be sorted exceeds one million when default parameters are used. Therefore, it is unusual to encounter this exception when a group-by query is employed.
Could you please retrieve the query that is triggering this issue by checking the INFO logs? Look for the error message in Immerse. To expedite the search, you can use the /logs/info endpoint in Immerse.
Thank you for your collaboration.
Best regards,
Candido -
Below you can find the query triggering the error, let me know if you need anything else.
The Dimension0 (dataora), once grouped , returns about 27000 groups.
2023-11-17T15:12:32.151243 E 28 5452 36326278 DBHandler.cpp:1678 Sorting the result would be too slow
2023-11-17T15:12:32.151571 I 28 5452 36326278 DBHandler.cpp:1619 stdlog sql_execute 7312 365 heavyai admin 913-FnJB {"query_str","client","nonce"} {"SELECT count(*) AS measure0, dataora AS dimension0 FROM operint GROUP BY dimension0 ORDER BY dimension0 desc NULLS LAST LIMIT 500","http:192.xxxx.xxx.xxx","11/1-0"} -
Hi Gianfranco,
Thank you for providing those logs; they have been instrumental in identifying the root cause of your issue. The query is failing because it's overestimating the number of rows returned. In this case, the watchdog assumes the potential number of rows rather than the actual number of rows returned, triggering the exception.
As a workaround, you can either disable the watchdog or increase the
parallel-top-max
from the default of 2,000,000 to a very high number.If you have any further questions or need assistance with the workaround, feel free to reach out.
Best regards,
Candido
Please sign in to leave a comment.
Comments
10 comments