-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map type not working on OSS vs Enterprise #636
Comments
@dsztykman Thanks for flagging this! At the moment, I'm unable to reproduce the issue locally with the Are you able to provide a sample of the dataset where you are seeing the issue occur? Are you using the Query Builder or SQL Editor to form the query? |
Technically it's happening when I'm using the log panel and I do an ugly query like: I have been playing a little bit and I have examples:
But this doesn't:
I'm guessing if you try |
@dsztykman Hmmm, this doesn't seem to be reproducible for me in the logs view either, on my local version based on the A sample dataset would help here if possible, as the exception seems to be thrown by the database driver, so might it be something that the driver, or the abstraction layer we have around it, is parsing incorrectly. It could also be me missing something here, so if you have any other helpful context, please feel free to add it. |
Hey @dsztykman - is this still an issue for you? If so, can you provide us with some information (see above comment) as we haven't been able to reproduce it on our side. Thanks! |
Closing this due to inactivity, please feel free to re-open if this is still an issue 😊 |
Sorry for my lack of response, it is indeed still an issue.
We are using Grafana in HA via k8s and we are using the following env variable to load it:
I can ping you a set of credentials to our deployment if you want to try to reproduce it? |
@aangelisc it feels like very similar to this issue: |
Reopening this, I'll share with our current triage to review 😊 |
Hi @dsztykman - I cannot replicate this either. If you could share a set of credentials and the dataset you're using so we can further investigate that would be great. Thanks! |
Wanted to chime in and ask/suggest a few things: Questions:
I am suspicious with how this error is appearing based on OSS/Enterprise versions. To my knowledge there shouldn't be any differences at that level of the application. Hope to find the solution to this soon. Thank you for submitting this issue and providing an update recently |
Yes it is still happening right now, the only solution we have is to cast into string so instead of selecting the map we actually do something like:
We are using the The "weird" thing is it doesn't happens all the time, for example we deploy grafana in HA and the query works for one of the container but not the other. |
by the way we changed our schema to avoid that issue so on the dump the botData is not a map anymore but the |
Thanks for the info! I have loaded the table+data into my local ClickHouse server.
Not sure what the query was in this case, but assuming Grafana+plugin are on the same version this could be something to do with the time ranges applied on the queries perhaps? For example, the first query has a different set of results from the second query. I will try simplifying the table to just one column. I also want to note that the original issue said Could you provide some more example queries, and confirm your most recently used Grafana + plugin version? Thank you for your patience, this is issue is difficult to reproduce. |
No worries I know it's difficult to reproduce because it doesn't happen on all our instances either... |
Thanks! I loaded the dashboard and it works well with your sample data. I also added a few rows where Unfortunately, still no errors... But I have reviewed the error logs you've pasted: Scan error on column index 8, name "botData": unsupported Scan, storing driver.Value type map[string]*string into type *string: Could not process SQL results Scan error on column index 3, name \"leaf_cert_all_domains\": unsupported Scan, storing driver.Value type []*string into type *string: Could not process SQL results" It seems like this error could be happening with multiple types? Also, if you have a recent occurence of this error, you could find the original query in the |
Interestingly this error is on ruleActions which is an array of string... |
@SpencerTorres I have upgraded the plugin to 4.0.6 which includes #783 and it fixes my issue. |
What happened:
Querying map using Clickhouse plugin v3.3.0 fails with the latest docker image of Grafana OSS:
Status: 500. Message: sql: Scan error on column index 8, name "botData": unsupported Scan, storing driver.Value type map[string]*string into type *string: Could not process SQL results
Using the following Grafana:
docker run -d --name=grafana -p 3443:3000 grafana/grafana-oss:10.2.2-ubuntu
What you expected to happen:
Able to query datatype map(string,string).
Trying with
docker run -d --name=grafana -p 3443:3000 grafana/grafana-enterprise:10.2.2-ubuntu
using the same clickhouse plugin v3.3.0 and the same datasource works.How to reproduce it (as minimally and precisely as possible):
Launch Grafana OSS with Docker, install clickhouse plugin 3.3.0, try to query a map(string, string) type.
Environment:
The text was updated successfully, but these errors were encountered: