Git Product home page Git Product logo

gohive's People

Contributors

dazheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gohive's Issues

批处理数据量batchsize最高只能是10000,该如何设置得更高?

问题:批处理数据量最高只能是10000,该如何设置得更高?

目标:如果我想要处理12000条数据,我rs.Next()只能拿到10000条,后面的2000条该怎么拿到呢?

描述:发现了batchsize批处理参数默认设置为10000,可以减少,但不可以增加,似乎10000是上限。rs.Next()处理到10000就已经为空了.

该如何解决?大佬可以提供个思路吗?

不支持更高版本的thrift

使用go get -u git.apache.org/thrift.git/lib/go/thrift获取最新的thrift,build示例报错
$ go build

github.com/dazheng/gohive/inf

../../../go_path/src/github.com/dazheng/gohive/inf/inf.go:15003: not enough arguments in call to oprot.Flush
have ()
want (context.Context)
../../../go_path/src/github.com/dazheng/gohive/inf/inf.go:15033: not enough arguments in call to oprot.Flush
have ()
want (context.Context)

panic: runtime error: invalid memory address or nil pointer dereference

Hello, did try to use your lib,
process compile did stop and did return error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x8 pc=0x5ee0ad]

goroutine 1 [running]:
github.com/dazheng/gohive.(*Connection).isOpen(...)
C:/Go/dev/src/github.com/dazheng/gohive/connection.go:97
github.com/dazheng/gohive.(*Connection).Close(0x0, 0x10, 0xc042077f58)
C:/Go/dev/src/github.com/dazheng/gohive/connection.go:103 +0x2d
main.main()
C:/Servers/Repository/Projects/um_open/templates/Test/hive2.go:32 +0x145

Please, help to solve problem.

通过gohive获取表大小

想问下如何通过gohive来获取表的大小。

rs, err := conn.Query("desc formatted " + tableName)
for rs.Next() {
    rs.Scan(&resultLine)
   // 获取表大小
}

但是这样是报错的,想问下这种非关系型的结果应该怎么读取出来呢?

"Can't scan into 1 arguments with input of length 3"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.