[v9.5.x] Docs: Fix help docs for SQL datasources (#67201)

Docs: Fix help docs for SQL datasources (#66749)

Fix example queries for SQL datasources

(cherry picked from commit a5e3157540)

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2023-04-25 15:01:37 +02:00
committed by GitHub
co-authored by Zoltán Bedi
parent 963cd42fcc
commit b8c5828b86
5 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -235,7 +235,7 @@ To optionally customize the default series name formatting, refer to [Standard o
```sql
SELECT
$__timeGroup("time_date_time",'5m'),
$__timeGroupAlias("time_date_time",'5m'),
min("value_double"),
'min' as metric
FROM test_data
@@ -257,11 +257,11 @@ Data frame result:
+---------------------+-----------------+
```
**Example using the fill parameter in the $\_\_timeGroup macro to convert null values to be zero instead:**
**Example using the fill parameter in the $\_\_timeGroupAlias macro to convert null values to be zero instead:**
```sql
SELECT
$__timeGroup("createdAt",'5m',0),
$__timeGroupAlias("createdAt",'5m',0),
sum(value) as value,
hostname
FROM test_data
@@ -290,7 +290,7 @@ Data frame result:
```sql
SELECT
$__timeGroup("time_date_time",'5m'),
$__timeGroupAlias("time_date_time",'5m'),
min("value_double") as "min_value",
max("value_double") as "max_value"
FROM test_data