ufukomer / node-impala

Node Client for Impala using Apache Thrift
https://www.npmjs.com/package/node-impala
MIT License
31 stars 12 forks source link

Weird data formatting being returned #20

Open kwent opened 6 years ago

kwent commented 6 years ago

Hi,

Thanks again for this piece of software.

When executing the following query:

SELECT 1 as foo, 2 as foo

Data returned is:

[
    [ '1\t2' ],
    [ { name: 'foo', type: 'tinyint', comment: '' }, { name: 'foo', type: 'tinyint', comment: '' } ]
]

I'm not sure i quite understand why 1\t2, i was expecting ['1', '2'].

Is this a bug ?

Regards

ufukomer commented 6 years ago

Probably a bug. Can you fix it? You can easily understand the problem by inserting a console.log here to see what is wrong with the result.