influxdata / influxdata/influxdb
column separator via CLI parameter
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
I am receiving csv data that I am trying to import via influx-cli. For the life of me I can't understand why one cannot overwrite the default column separator to use e.g. ";" instead of "," via a parameter to the influx write command.
It can't be set via header and has no chance of modifying the parser besides it being the 1st line in the csv.
sep=;
description;some texttimeframe;high;low;total
01.01.2023;0;14;14
02.01.2023;7;4;11
I do have the "sep=;" in the file but I need to skip lines 2,3 and 4. As this is not supported in any way I need to skip all 4 lines and then reinsert "sep=;".
Any other tool I know that does any kind of csv processing allows setting of the separator. Why is this so difficult here?
Or am I missing something entirely and this can be read without having to use awk/sed sort of tools?
Contributor guide
Research direction
Start with the influx-cli `influx write` command and trace how CSV input is parsed, focusing on how command parameters and the first-line separator are handled. Done means a caller can provide a semicolon separator through the command interface and import the shown CSV without preprocessing; add or run coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100