Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ON and use default database for SHOW commands #7295

Merged

Conversation

jsternberg
Copy link
Contributor

Normalize all of the SHOW commands so they allow both using ON to
specify the database and using the default database. Some commands would
require one and some would require the other and it was confusing when
using the query language.

Affected commands:

  • SHOW RETENTION POLICIES
  • SHOW MEASUREMENTS
  • SHOW SERIES
  • SHOW TAG KEYS
  • SHOW TAG VALUES
  • SHOW FIELD KEYS

Fixes #6962.

@jwilder jwilder added the area/influxql Issues related to InfluxQL query language label Sep 13, 2016
@jwilder
Copy link
Contributor

jwilder commented Sep 13, 2016

Needs a changelog entry and probably needs a docs PR update.

LGTM otherwise.

@jwilder jwilder added this to the 1.1.0 milestone Sep 13, 2016
@corylanou
Copy link
Contributor

👍

Normalize all of the SHOW commands so they allow both using ON to
specify the database and using the default database. Some commands would
require one and some would require the other and it was confusing when
using the query language.

Affected commands:

* SHOW RETENTION POLICIES
* SHOW MEASUREMENTS
* SHOW SERIES
* SHOW TAG KEYS
* SHOW TAG VALUES
* SHOW FIELD KEYS
@jsternberg jsternberg force-pushed the js-6962-specify-database-in-schema-exploration-queries branch from 928c43f to aae88fc Compare September 13, 2016 20:37
@jsternberg jsternberg merged commit 07e3ceb into master Sep 13, 2016
@jsternberg jsternberg deleted the js-6962-specify-database-in-schema-exploration-queries branch September 13, 2016 20:56
@beckettsean
Copy link
Contributor

@jsternberg presumably the old style commands still work, this just adds new, consistent syntax?

@jsternberg
Copy link
Contributor Author

@beckettsean yep. And if you see any other commands you want this done to, just file an issue and I'll do them too.

@beckettsean
Copy link
Contributor

@jsternberg can you add SHOW SHARDS to this list?

#7353

jsternberg added a commit that referenced this pull request Nov 1, 2016
The parser was updated previously in #7295 and the functionality was
supposed to be there, but the wiring in the query engine for that to
happen was never written.
jsternberg added a commit that referenced this pull request Nov 1, 2016
The parser was updated previously in #7295 and the functionality was
supposed to be there, but the wiring in the query engine for that to
happen was never written.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/influxql Issues related to InfluxQL query language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants