influxdata / influxdata/influxdb1-client

What is the difference of the 'parametric' precision between the Point struct and the BatchPoints struct? Please

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
192
Forks
109
PR merge metrics
No merged PRs in 30d

Description

According to [example_test.go](https://github.com/influxdata/influxdb1-client/blob/master/example_test.go) line 100, I received response `{"error":"partial write: points beyond retention policy dropped=1"}`

But I added `Precision: "s",` in line 104 `bps := client.BatchPoints{}`, this error disappears.

So, I want to ask what is the difference between them.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Read example_test.go around lines 100-104 and compare the Point and BatchPoints uses of Precision. Reproduce the retention-policy error with the example, then document the difference between their precision settings and why the observed result changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.