influxdata / influxdata/influxdb

Support parameterized queries in the `influxdb3 query` CLI

Open
#24,807 0 comments 0 reactions 0 assignees View on GitHub
security security/misc v3
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

The purpose of this issue is to support parameterized queries in the `influxdb3 query` command.

First, we need to determine how parameters would be passed as part of the CLI command, i.e., via argumets:
```
influxdb3 query --param
```
or via a file, e.g.,
```
influxdb3 query --param-file my_params.json
```

We need to consider that parameters can have one of a few primitive types (string, integer, unsigned integer, float, or bool).

### Additional context

#24804 and #24806 gave the ability to add parameterized query support via the HTTP API as well as `influxdb3_client`.

Contributor guide

Open the contributing guide

Research direction

Start with the implementation and entry point for the `influxdb3 query` CLI, then review #24804 and #24806 for the existing parameterized-query behavior. Determine and document the CLI parameter interface and handling for string, integer, unsigned integer, float, and bool values; done means the chosen interface is implemented and covered by query behavior tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.