influxdata / influxdata/influx-cli

influx query truncates long columns

Open
#172 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

noticed this difference between the old cli and the new one. using the `--raw` flag works as expected.

`influx query -c tools "buckets()"`

new cli:
```
xxxxxxxxxxxxxxxxxx abcdefghi-test xxxxxxxxxxxxxxxxxx 172800000000000
xxxxxxxxxxxxxxxxxx abcdefghi_curated xxxxxxxxxxxxxxxxxx 0
xxxxxxxxxxxxxxxxxx abcdefghi_http_api_... xxxxxxxxxxxxxxxxxx 0
xxxxxxxxxxxxxxxxxx abcdefghi_v1 xxxxxxxxxxxxxxxxxx 0
xxxxxxxxxxxxxxxxxx temp_slo_testing xxxxxxxxxxxxxxxxxx 2592000000000000
```

old cli:

```
xxxxxxxxxxxxxxxxxx abcdefghi-test xxxxxxxxxxxxxxxxxx 172800000000000
xxxxxxxxxxxxxxxxxx abcdefghi_curated xxxxxxxxxxxxxxxxxx 0
xxxxxxxxxxxxxxxxxx abcdefghi_http_api_clean xxxxxxxxxxxxxxxxxx 0
xxxxxxxxxxxxxxxxxx abcdefghi_v1 xxxxxxxxxxxxxxxxxx 0
xxxxxxxxxxxxxxxxxx temp_slo_testing xxxxxxxxxxxxxxxxxx 2592000000000000
```

I'm not sure if this is something to address tbh. i'm just highlighting this as a difference, and it might be good to understand how to customize the column width.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the `influx query -c tools "buckets()"` output path and compare its default rendering with the existing `--raw` behavior. Determine whether long bucket names should remain untruncated or whether column width should be configurable; done means the intended behavior is resolved and reflected in the query output.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.