manlge edited a comment on pull request #6:
URL: https://github.com/apache/iotdb-client-go/pull/6#issuecomment-752332052
e.g.
```golang
func validate(tablet *client.Tablet) (err error) {
temperatureColumn := 2
for i := 0; i < tablet.GetRowCount(); i++ {
if v, err := tablet.GetValueAt(temperatureColumn, i); err ==
nil {
temperature := v.(float32)
if temperature > 42.5 || temperature < 35.1 {
return errors.New("The temperature must be in
[35..42]")
}
}
}
return err
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]