InfluxCommunity / influxdb3-go

The go package that provides a simple and convenient way to interact with InfluxDB 3.
https://pkg.go.dev/github.com/InfluxCommunity/influxdb3-go
MIT License
21 stars 11 forks source link

Query iterator should return timestamp column values as `time.Time` #32

Closed alespour closed 11 months ago

alespour commented 11 months ago

Use Case

time.Time is Golang native type for time/timestamp. Now user has to do this:

    value := iterator.Value()
    timestamp := value["time"].(arrow.Timestamp).ToTime(arrow.Nanosecond)

Expected behavior

Golang type for timestamp should be time.Time

Actual behavior

Time is of arrow.Timestamp

Additional info

No response

bednar commented 11 months ago

From my POV I would like to keep the basic query implementation as simple as possible. This enhancement can be done in our improvement: Query data to Structured Object