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 Object from mysql source? #226

Open
michaelrwright opened this issue Jan 19, 2025 · 1 comment
Open

Nested Object from mysql source? #226

michaelrwright opened this issue Jan 19, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@michaelrwright
Copy link

When setting comments I get the correct amount of comments in count but they have no data just empty grey boxes. Is there something missing to use this feature with mysql data source

Image

Grafana v11.4.0 (b58701869e)
Business Table Version 2.0.0

Query A

select *,
(select json_arrayagg(tc.c_id) as c_id
from mani_IT.test_comments tc
where tc.comment_id = td.id
) as comment
from mani_IT.test_devices td
order by td.id

nested Object query

SELECT *
FROM mani_IT.test_comments
WHERE c_id IN (${payload.ids:csv});

Data Settings filled in

@michaelrwright
Copy link
Author

This seems to work when setting my nested object query to the below. I'm not sure how it works but each row selects the correct comments.

once the data settings are filled out it populates

SELECT * 
FROM mani_IT.test_comments

@mikhail-vl mikhail-vl added the question Further information is requested label Jan 20, 2025
@mikhail-vl mikhail-vl moved this to Ready in Business Suite Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Status: Ready
Development

No branches or pull requests

3 participants