influx-cli icon indicating copy to clipboard operation
influx-cli copied to clipboard

influx query: add the ability to run an influxql query

Open russorat opened this issue 4 years ago • 3 comments

our query api for cloud supports influxql queries: https://docs.influxdata.com/influxdb/cloud/api/#operation/PostQuery

this issue would update the influx query command to include an explicit --type flag which would default to flux. When set to influxql it would interpret the query or the file as an influxql query and send it accordingly.

russorat avatar Aug 06 '21 17:08 russorat

@russorat does InfluxQL support enabling profilers like Flux does? Or would we raise an error when profilers are specified + --type influxql?

danxmoran avatar Aug 06 '21 18:08 danxmoran

the existing options wouldn't work, but there is an explain command in influxql: https://docs.influxdata.com/influxdb/v1.8/query_language/spec/#explain

russorat avatar Aug 06 '21 18:08 russorat

We now have the influx v1 shell which allows users to make InfluxQL queries from the CLI, merged here #386.

candrewlee14 avatar Jun 22 '22 16:06 candrewlee14