VictoriaMetrics/lib/protoparser/csvimport
Aliaksandr Valialkin 160453b86c
lib/protoparser/csvimport: properly parse the last empty column in CSV line
Do not ignore the last empty column in CSV line.
While at it, properly parse CSV columns in single quotes, e.g. `'foo,bar',baz` is parsed as two columns - `foo,bar` and `baz`

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4048

See also https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4298
2023-05-12 15:51:41 -07:00
..
stream lib/protoparser/csvimport: extract stream parsing code into a separate stream package 2023-02-13 10:25:46 -08: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:58 +03:00
column_descriptor.go lib/protoparser/csvimport: properly parse the last empty column in CSV line 2023-05-12 15:51:41 -07:00
parser_test.go lib/protoparser/csvimport: properly parse the last empty column in CSV line 2023-05-12 15:51:41 -07:00
parser_timing_test.go app/{vmagent,vminsert}: add support for importing csv data via /api/v1/import/csv 2020-03-10 21:15:35 +02:00
parser.go lib/protoparser/csvimport: properly parse the last empty column in CSV line 2023-05-12 15:51:41 -07:00
scanner_test.go lib/protoparser/csvimport: properly parse the last empty column in CSV line 2023-05-12 15:51:41 -07:00
scanner.go lib/protoparser/csvimport: properly parse the last empty column in CSV line 2023-05-12 15:51:41 -07:00