Skip to content
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

Plugin cannot query JSON line format #14

Open
jcdauchy-moodys opened this issue Jun 25, 2021 · 0 comments
Open

Plugin cannot query JSON line format #14

jcdauchy-moodys opened this issue Jun 25, 2021 · 0 comments

Comments

@jcdauchy-moodys
Copy link

jcdauchy-moodys commented Jun 25, 2021

Describe the bug
When querying JSON file from S3, the datasource tries to convert to CSV.

I guess we should be able to keep JSON format as output.

PS: The same query in AWS S3 select works when output is JSON

Please complete the following information:

  • OS: [linux]
  • Browser [chrome]
  • Grafana Version [7.5.6]

Additional context
Here is the error message in Grafana log :

t=2021-06-25T13:55:23+0000 lvl=info msg=S3Select logger=plugins.backend pluginId=tvarit-s3-datasource stats="map[BytesProcessed:131801 BytesReturned:2777 BytesScanned:196524]" ││ t=2021-06-25T13:55:23+0000 lvl=eror msg=S3Select logger=plugins.backend pluginId=tvarit-s3-datasource df.ToCSV="ToCSV (jsonRecordsToData: unknown type of map[])"

PS2: Maybe it cannot work on "complex JSON", only flat JSON can work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant