Skip to content

Commit

Permalink
Edit SHOW SERIES docs (influxdata#3923)
Browse files Browse the repository at this point in the history
* Edit `SHOW SERIES` docs

Co-authored-by: Scott Anderson <[email protected]>
  • Loading branch information
pierwill and sanderson authored Apr 5, 2022
1 parent 2eaf62d commit 7643f32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ SHOW SERIES [ON <database_name>] [FROM_clause] [WHERE <tag_key> <operator> [ '<t
If the query does not include `ON <database_name>`, you must specify the
database with `USE <database_name>` in the [CLI](/enterprise_influxdb/v1.9/tools/influx-cli/use-influx/) or with the `db` query
string parameter in the [InfluxDB API](/enterprise_influxdb/v1.9/tools/api/#query-string-parameters) request.
`SHOW SERIES` only returns series in the database's default retention policy,
and fails if there is no default retention policy.

The `FROM`, `WHERE`, `LIMIT`, and `OFFSET` clauses are optional.
The `WHERE` clause supports tag comparisons; field comparisons are not
Expand All @@ -211,7 +213,7 @@ and on [Regular Expressions in Queries](/enterprise_influxdb/v1.9/query_language
#### Run a `SHOW SERIES` query with the `ON` clause

```sql
// Returns series for all shards in the database
// Returns series for all shards in the database and default retention policy
> SHOW SERIES ON NOAA_water_database

key
Expand Down
4 changes: 3 additions & 1 deletion content/influxdb/v1.8/query_language/explore-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ SHOW SERIES [ON <database_name>] [FROM_clause] [WHERE <tag_key> <operator> [ '<t
If the query does not include `ON <database_name>`, you must specify the
database with `USE <database_name>` in the [CLI](/influxdb/v1.8/tools/shell/) or with the `db` query
string parameter in the [InfluxDB API](/influxdb/v1.8/tools/api/#query-string-parameters) request.
`SHOW SERIES` only returns series in the database's default retention policy,
and fails if there is no default retention policy.

The `FROM`, `WHERE`, `LIMIT`, and `OFFSET` clauses are optional.
The `WHERE` clause supports tag comparisons; field comparisons are not
Expand All @@ -212,7 +214,7 @@ and on [Regular Expressions in Queries](/influxdb/v1.8/query_language/explore-da
#### Run a `SHOW SERIES` query with the `ON` clause

```sql
// Returns series for all shards in the database
// Returns series for all shards in the database and default retention policy
> SHOW SERIES ON NOAA_water_database

key
Expand Down

0 comments on commit 7643f32

Please sign in to comment.