You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by VanHuy Pham <hu...@gmail.com> on 2012/07/14 03:25:03 UTC

Thrift Client

Hi All,
    After using ThriftHive.Client.execute(query), how to get the value of
each column individually? Instead of using fetchAll() or fetchN() or
fetchOne(), which alway concatenate all the values of all columns in one
row into a String (separated by a tab character).
    More specific: Suppose we have two columns: col1, and col2 with two
rows: (col1_value1, col2_value1), (col1_value2, col2_value2)
    The fetch methods always return a list of strings, each of which is
like (col1_value1+"\t"+ col2_value1)
    Since the value itself might contain a tab character, it's not a good
idea to split the returned string by a tab character, so need to get each
column value individually.

Any idea how to get that?
Thanks