From e339cc0601d290ecf85f478f0149071773326fb2 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 23 Jul 2024 13:56:16 -0600 Subject: [PATCH] hotfix: fix v2 influxql query examples --- content/influxdb/v2/query-data/influxql/_index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/influxdb/v2/query-data/influxql/_index.md b/content/influxdb/v2/query-data/influxql/_index.md index fcc95aa04..701f0c5b2 100644 --- a/content/influxdb/v2/query-data/influxql/_index.md +++ b/content/influxdb/v2/query-data/influxql/_index.md @@ -77,7 +77,7 @@ The [`influx` CLI](/influxdb/v2/reference/cli/influx/) provides an [InfluxQL she 3. Execute an InfluxQL query inside the InfluxQL shell. ```sql - SELECT used_percent FROM example-db.example-rp.example-measurement WHERE host=host1 + SELECT used_percent FROM "example-db"."example-rp"."example-measurement" WHERE host=host1 ``` For more information, see how to [use the InfluxQL shell](/influxdb/v2/tools/influxql-shell/). For more information about DBRP mappings, see [Manage DBRP mappings](/influxdb/v2/query-data/influxql/dbrp/). @@ -105,7 +105,7 @@ all InfluxDB 1.x client libraries and integrations in InfluxDB {{< current-versi ```sh curl --get http://localhost:8086/query?db=example-db \ --header "Authorization: Token YourAuthToken" \ - --data-urlencode "q=SELECT used_percent FROM example-db.example-rp.example-measurement WHERE host=host1" + --data-urlencode "q=SELECT used_percent FROM \"example-db\".\"example-rp\".\"example-measurement\" WHERE host=host1" ``` By default, the `/query` compatibility endpoint returns results in **JSON**.