一个使用Golang开发的小项目,要加入使用 rocketlaunchr/dataframe-go 来编写一个导出工具,却在使用dataframe-go报下面的错:
$ go run main.go
# github.com/xitongsys/parquet-go/parquet
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:631:16: not enough arguments in call to iprot.ReadStructBegin
have ()
want (context.Context)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:637:37: not enough arguments in call to iprot.ReadFieldBegin
have ()
want (context.Context)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:649:30: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:659:30: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:669:30: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:679:30: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:689:30: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:699:30: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:704:28: not enough arguments in call to iprot.Skip
have (thrift.TType)
want (context.Context, thrift.TType)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:708:15: not enough arguments in call to iprot.ReadFieldEnd
have ()
want (context.Context)
C:\Users\hellogo\go\pkg\mod\github.com\xitongsys\parquet-go@v1.5.2\parquet\parquet.go:708:15: too many errors
解决办法
是由于项目go.mod
里使用低版本的 1.15 go版本引起的,改到 1.18 及以上就可以了。
网友评论