influxdata / influxdata/influxdb

Int64 bit doesn't match when inserting number

Open
#24,189 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.

1. Input data via Line Protocol with large number ex. 2893606913523066920
2. Input data via Line Protocol with large number ex. 578437695752307201
3. Input data via Line Protocol with large number ex. 3617008641903833650

__Expected behavior:__

- Stored number in Influxdb is 2893606913523066920
- Stored number in Influxdb is 578437695752307201
- Stored number in Influxdb is 3617008641903833650

__Actual behavior:__

- Stored number in Influxdb is 2893606913523067000
- Stored number in Influxdb is 578437695752307200
- Stored number in Influxdb is 3617008641903833600

__Environment info:__

* System info: Linux 5.4.0-144-generic x86_64
* InfluxDB version: influxdb:2.6.0-alpine
* Other relevant environment details: I use docker to run influxdb

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files, tests, or entry points to follow. Start by reproducing the Line Protocol inserts with the listed large integers in InfluxDB 2.6.0, then locate the numeric parsing and storage path; done means each value is preserved exactly as an Int64.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.