VictoriaMetrics/lib/protoparser/csvimport
Aliaksandr Valialkin 6fd39e2000
Revert "lib/protoparser: fix skip csv line when metric can be collect from the line (#4298)"
This reverts commit 410ae99c2e.

Reason for revert: the commit masks the real issue instead of fixing it.
The real issue is that the scanner.NextColumn() skips the last column if it is empty.

The commit also introduces two bugs:

- a panic if all the metric values in CSV line are empty
- silent import of CSV lines with too small number of columns

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4048
See https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4298
2023-05-12 16:59:11 -07:00
..
stream lib/protoparser/csvimport: extract stream parsing code into a separate stream package 2023-02-13 10:26:29 -08:00
column_descriptor.go all: make fmt via the upcoming Go1.19 2022-07-11 19:23:25 +03:00
column_descriptor_test.go Perform conversion from string to []byte according to rule #6 at https://golang.org/pkg/unsafe/#Pointer 2020-08-05 11:55:12 +03:00
parser.go Revert "lib/protoparser: fix skip csv line when metric can be collect from the line (#4298)" 2023-05-12 16:59:11 -07:00
parser_test.go Revert "lib/protoparser: fix skip csv line when metric can be collect from the line (#4298)" 2023-05-12 16:59:11 -07:00
parser_timing_test.go app/{vmagent,vminsert}: add support for importing csv data via /api/v1/import/csv 2020-03-10 21:17:40 +02:00
scanner.go app/{vmagent,vminsert}: add support for importing csv data via /api/v1/import/csv 2020-03-10 21:17:40 +02:00
scanner_test.go app/{vmagent,vminsert}: add support for importing csv data via /api/v1/import/csv 2020-03-10 21:17:40 +02:00