無法構建檔案 session_example.go。錯誤資訊是
go build session_exmaple.go
github.com/apache/iotdb-client-go/rpc
/root/go/src/github.com/apache/iotdb-client-go/rpc/rpc.go:106:36: not enough arguments in call to iprot.ReadStructBegin
have ()
want (context.Context)
/root/go/src/github.com/apache/iotdb-client-go/rpc/rpc.go:114:55: not enough arguments in call to iprot.ReadFieldBegin
have ()
want (context.Context)
/root/go/src/github.com/apache/iotdb-client-go/rpc/rpc.go:198:32: too many errors
thrift 的介面 TProtocol 的功能不匹配。可能存在無法列印的其他錯誤。
uj5u.com熱心網友回復:
您可以檢查 thrift 是 0.13.0 或更高版本。如果沒有 go mod,你可以嘗試如下:
# get thrift 0.13.0
go get github.com/apache/thrift
cd $GOPATH/src/github.com/apache/thrift
git checkout 0.13.0
mkdir -p $GOPATH/src/iotdb-client-go-example/session_example
cd $GOPATH/src/iotdb-client-go-example/session_example
curl -o session_example.go -L https://github.com/apache/iotdb-client-go/raw/main/example/session_example.go
go run session_example.go
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/360639.html
標籤:数据库 apache-iotdb 数据库
上一篇:使用關聯表的新外鍵更新表的列
