Closed mammuthus closed 1 year ago
"2023-02-23 09:26:59" does not seem like a particularly ISO compliant string format (more info about time formats here).
Can you try to make sure that the timestamp is actually recognized as such correctly?
For example. Could you run the same query against unix timestamps (integer numbers) and see what you get?
You mean like
?
I am not sure if having multiple values for a single timestamp is a problem.
I will take a look in a bit. 👌
By the way, I converted the timestamp to Unix Epoch, so it should be native for the plugin now, and the result is the same
New dataset:
Result:
@fr-ser LMAO, I'm dumb. message was a string, so obviously it won't work until I convert it to numeric.
SELECT timestamp as time, CAST(message AS INTEGER) as value
FROM messages
ORDER BY timestamp ASC
Thank you for your time.
Let me reopen the issue so I will remember to take a look later if the error message can be improved
What should be the timestamp's datatype in the table schema? I'm trying to visualize something similar but the data in the timestamp column disappears as soon as I add that column as a time formatted column.
@DhanushDK17 you can have a look at this section: https://github.com/fr-ser/grafana-sqlite-datasource#support-for-time-formatted-columns
If that does not answer the question please open a new issue and we can have a look
It is tricky to improve the error message without analyzing the data frame in depth. Currently, I make use of the standard Grafana method to check the validity of the series.
Unless there are more problems with similar issues in the future I'll leave it at that.
Describe the bug Getting an error: "can not convert to wide series, expected long format series input but got not series", while settings seems to be valid. No error description was found.
Dataset:
Query:
To Reproduce Steps to reproduce the behavior:
Screenshots
![image](https://user-images.githubusercontent.com/1700286/221023076-aa53c5c5-cc09-4414-b754-4f0ea43d0da7.png)
Versions (please complete the following information):