From eb51d27f69ab126b622fe51e592169f9b24850eb Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 20 Aug 2024 09:05:54 -0600 Subject: [PATCH] hotfix: port array workaround to clustered and dedicated --- .../query-data/troubleshoot-and-optimize/troubleshoot.md | 7 +++++++ .../query-data/troubleshoot-and-optimize/troubleshoot.md | 1 - .../query-data/troubleshoot-and-optimize/troubleshoot.md | 7 +++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/content/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/troubleshoot.md b/content/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/troubleshoot.md index b0ec24bfa..80b91422d 100644 --- a/content/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/troubleshoot.md +++ b/content/influxdb/cloud-dedicated/query-data/troubleshoot-and-optimize/troubleshoot.md @@ -28,6 +28,13 @@ If a query doesn't return any data, it might be due to the following: - Your data falls outside the time range (or other conditions) in the query--for example, the InfluxQL `SHOW TAG VALUES` command uses a default time range of 1 day. - The query (InfluxDB server) timed out. - The query client timed out. +- The query return type is not supported by the client library. + For example, array or list types may not be supported. + In this case, use `array_to_string()` to convert the array value to a string--for example: + + ```sql + SELECT array_to_string(array_agg([1, 2, 3]), ', ') + ``` If a query times out or returns an error, it might be due to the following: diff --git a/content/influxdb/cloud-serverless/query-data/troubleshoot-and-optimize/troubleshoot.md b/content/influxdb/cloud-serverless/query-data/troubleshoot-and-optimize/troubleshoot.md index 2cb99478e..95f0d4e0c 100644 --- a/content/influxdb/cloud-serverless/query-data/troubleshoot-and-optimize/troubleshoot.md +++ b/content/influxdb/cloud-serverless/query-data/troubleshoot-and-optimize/troubleshoot.md @@ -36,7 +36,6 @@ If a query doesn't return any data, it might be due to the following: SELECT array_to_string(array_agg([1, 2, 3]), ', ') ``` - If a query times out or returns an error, it might be due to the following: - a bad request diff --git a/content/influxdb/clustered/query-data/troubleshoot-and-optimize/troubleshoot.md b/content/influxdb/clustered/query-data/troubleshoot-and-optimize/troubleshoot.md index 7454c13ed..ce6ac0473 100644 --- a/content/influxdb/clustered/query-data/troubleshoot-and-optimize/troubleshoot.md +++ b/content/influxdb/clustered/query-data/troubleshoot-and-optimize/troubleshoot.md @@ -28,6 +28,13 @@ If a query doesn't return any data, it might be due to the following: - Your data falls outside the time range (or other conditions) in the query--for example, the InfluxQL `SHOW TAG VALUES` command uses a default time range of 1 day. - The query (InfluxDB server) timed out. - The query client timed out. +- The query return type is not supported by the client library. + For example, array or list types may not be supported. + In this case, use `array_to_string()` to convert the array value to a string--for example: + + ```sql + SELECT array_to_string(array_agg([1, 2, 3]), ', ') + ``` If a query times out or returns an error, it might be due to the following: