VictoriaMetrics/app/vlinsert/insertutils
Aliaksandr Valialkin 034a456a41
app/vlinsert: follow-up for 67f8fa66ed
- Properly handle negative timestamps (e.g. timestamps before 1970-01-01)

- Optimize parsing floating-point timestamps by eliminating the memory allocation
  needed for returning an error from strconv.ParseInt. Instead, check whether the string contains a dot,
  and then parse it as a floating-point number.

- Add tests for ParseUnixTimestamp function.

- Make the code easier to understand and maintain by removing unneeded generic function toNano().

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8470
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/8472
2025-03-12 16:35:37 +01:00
..
common_params.go lib/logstorage: remove unnecesary abstraction - RowsFormatter 2025-01-29 13:29:23 +01:00
flags.go lib/logstorage: ignore logs with too long field names during data ingestion 2025-01-29 13:29:22 +01:00
line_reader.go app/vlinsert/insertutils: avoid excess copying of lines at LineReader.buf 2025-01-13 07:23:18 +01:00
line_reader_test.go app/vlinsert: properly skip too long lines at Elasticsearch bulk import protocol 2024-12-05 15:16:53 +01:00
testutils.go app/vlinsert: use default set of log stream fields for Loki and OpenTelemetry protocols if _stream_fields query arg is empty 2024-12-05 15:16:53 +01:00
timestamp.go app/vlinsert: follow-up for 67f8fa66ed 2025-03-12 16:35:37 +01:00
timestamp_test.go app/vlinsert: follow-up for 67f8fa66ed 2025-03-12 16:35:37 +01:00