You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func (i*QueryIterator) Next() (map[string]interface{}, error) // how about adding a new type (or alias) for the value?func (i*QueryIterator) AsPoints() (*PointValues, error)
This renders Value method useless, btw.
So perhaps adding a new iterator type designed according to the guidelines, and deprecating the existing one would be a better solution.
Actual behavior
panic may occur
Additional info
No response
The text was updated successfully, but these errors were encountered:
Hi @alespour 😊
I will take care of this ticket, but I have a question
func (i *QueryIterator) Next() (map[string]interface{}, error) // how about adding a new type (or alias) for the value?
It already has PointValues to prepresent a row. So... Can you clarify this?
Specifications
Code sample to reproduce problem
When result contains unsupported data type, the following calls may cause
panic
.influxdb3-go/influxdb3/query_iterator.go
Line 88 in 94c8385
influxdb3-go/influxdb3/query_iterator.go
Line 108 in 94c8385
Expected behavior
Next()
andAsPoints()
should not panic, but somehow return error.Next
methods could be changed according to these iterator guidelines andAsPoints
similarly. ieThis renders
Value
method useless, btw.So perhaps adding a new iterator type designed according to the guidelines, and deprecating the existing one would be a better solution.
Actual behavior
panic
may occurAdditional info
No response
The text was updated successfully, but these errors were encountered: