styfstr opened a new issue, #92:
URL: https://github.com/apache/iotdb-client-go/issues/92
```
func insertData() {
var (
deviceId =
"root.data.usernameId.88c4411b670c.deviceId"
measurements = []string{"switch", "temp", "count"}
values = []interface{}{false, 32.3, 108}
dataTypes = []client.TSDataType{client.BOOLEAN,
client.FLOAT, client.INT32}
timestamp int64 = 120
)
session, err := sessionPool.GetSession()
defer sessionPool.PutBack(session)
if err == nil {
checkError(session.InsertRecord(deviceId, measurements,
dataTypes, values, timestamp))
}
}
```
报错:`values[1] 32.3(float64) must be float32`,能否实现自动将数数据转换为实际的类型?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]