What happened?
The following two queries work as expected via MySQL and the grafana query inspector shows the expected values, but the 2nd query returns no data for the gauge panel.
Working Query:
SELECT
count(distinct vm_type, test_area, test_name),
end_start_time AS “time”
FROM NewTestResults
WHERE
$__timeFilter(end_start_time)
ORDER BY time
Non Working Query:
SELECT
count(distinct vm_type, test_area, test_name, test_subname),
end_start_time AS “time”
FROM NewTestResults
WHERE
$__timeFilter(end_start_time)
ORDER BY time
What was expected to happen?
That the 2nd query from above returns data
Steps to reproduce the problem:
-
Have a MySQL table with several column values
-
Select count distinct for a combination of several columns i.e count(distinct col1, col2, col3, col4)
-
No data is returned
-
Grafana CLI version 7.4.3
-
OS: Windows 10