influxdata / influxdata/influx-cli

influx query: add the ability to run an influxql query

Open
#225 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the implementation and tests for the `influx query` command, then compare its request handling with the linked InfluxDB Cloud PostQuery API documentation. The work is done when an explicit `--type` option defaults to `flux`, accepts `influxql`, and sends either inline queries or file contents using the corresponding query type.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.