imjuni / jshs2

jsHS2 is a node.js client driver for hive server 2
http://imjuni.github.io/jshs2/
MIT License
34 stars 12 forks source link

Add i64ToString option #6

Closed imjuni closed 8 years ago

imjuni commented 8 years ago

Fix bug

* Fix bug from CallbackTest and PromiseTest. If resultset hasn't rows after cause error. Because test always try getSchema and fetch.
* Fix bug from CCursor. If error caused from close, return reject. But reject not defined function, fix it.

New feature

* add Configuration option i64ToString. int64 convert i64val to float64. Int64 cannot convert float64, return Infinity. i64ToString is to true, convert string value of real value.
* If you not set i64ToString that is to set true. You don't wanna this feature that flag set false.
* update cluster.json
* update testcase
# example

i64ToString true, 7614985126350998549 -> '7614985126350998549'
i64ToString false, 7614985126350998549 -> Infinity