influxdata / influxdata/influxdb
InfluxDB command line interface import doesn't support windows line endings
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
I'm basically re-opening #10507 since it was automatically closed. I wasted a morning trying to import valid data only to discover that CRLF line endings misinterpreted.
**System info:**
InfluxDB shell version 1.7.8 for Windows 10 1703
InfluxDB server version 1.7.8 running on Windows 10 1703
**Steps to reproduce:**
Run influx command line interface using import option
influx.exe -host x.y.z -import -path test.txt
Specify path to file with windows line endings (\r\n)
test.txt
**Expected behavior:**
File should be imported correctly.
**Actual behavior:**
File fails to import with following error.
2018/11/20 10:56:29 error writing batch: {"error":"unable to parse ''82d1ca6a-f580-420f-b808-ecff8ecb18d9' value=0 1439856000\r': bad timestamp\n...
Converting the file to unix style line endings (\n) fixes the issue, but it's not entirely clear this is the problem from the error message.
Contributor guide
Assessment
This issue has not been assessed yet.