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

Nested value does not work properly #45

Open
trungkien210493 opened this issue Feb 23, 2021 · 2 comments · May be fixed by #59
Open

Nested value does not work properly #45

trungkien210493 opened this issue Feb 23, 2021 · 2 comments · May be fixed by #59
Labels
bug Something isn't working
Milestone

Comments

@trungkien210493
Copy link

Describe the bug
Based on the behavior of grafana, the datasource seems to use the first row to define the table structure (if the first row is not null, it can display properly). Then, when the first row with the nested value is null, the table will display only the name of nested value, not flatten this value.

Expected behavior
The datasource should able to find the table structure from from the query or the all elements of result.

Screenshots
image
image

@trungkien210493 trungkien210493 added the bug Something isn't working label Feb 23, 2021
@retzkek retzkek added this to the v2.0 milestone Mar 4, 2021
@retzkek
Copy link
Contributor

retzkek commented Mar 4, 2021

Thanks for reporting this issue. It's definitely a bit tricky, and for sure the "right" thing to do is use the query/schema to determine the data frame structure (see also #13).

@trungkien210493
Copy link
Author

@retzkek Thank you for your response. In my opinion, it is easier if you use a loop in the result from query to find the table structure because the result is in "json" format, there are a lot of library to parse it. The query parser is not easy to code and generate the table structure from the parser (I'm a Python Developer and I also tried to parse the Graphql query with the "graphql" Python library and it is very hard )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants