influxdata / influxdata/influxdb

Bug with 'influxdb3 show databases' when outputting to parquet

Open
#25,941 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

v3
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

The `influxdb3 show databases` command lists `parquet` as a supported output format but doesn't provide a `-o`,`--output` option to specify a file to write output to. You can't output raw Parquet in a command line.

__Steps to reproduce:__

1. Create one or more databases in an InfluxDB 3 Core or Enterprise instance.
2. Run the following command to list databases and format the output as Parquet:

```sh
influxdb3 show databases --format parquet
```

__Expected behaviour:__

I would expect the show commands, if they are to support Parquet output, would also include a `-o`, `--output` option to output the raw Parquet to a file (like the `influxdb3 query` command does).

__Actual behaviour:__

When you try to output Parquet on the command line, you get an error similar to:

```
Show command failed: invalid utf-8 sequence of 1 bytes from index 19
```

Contributor guide

Open the contributing guide

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 with the `influxdb3 show databases` command and compare its format and output options with the `influxdb3 query` command. Verify the Parquet path does not treat raw output as UTF-8; done means `--format parquet` can write valid raw Parquet to a file through `-o` or `--output`.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, database
Issue type
Bug
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.