Hi all,

I'm trying to fetch data from hive server using hive ODBC driver.

I observed that strings begin fetched at application side are truncated to
length 334, I further looked into the *hiveclient *code and found there are
two variables which are hardcoded to “334”

 ./src/odbc/src/cpp/thriftserverconstants.h:static const int
MAX_DISPLAY_SIZE = 334;
./src/odbc/src/cpp/thriftserverconstants.h:static const int
MAX_BYTE_LENGTH  = 334;



I tried finding usage of these variables and looks like MAX_BYTE_LENGTH is
causing issue of string truncation.



abhi@vmabhihive:~/hhh/ts/hive-0.8.1$<abhi@vm-abhihive:%7E/hhh/ts/hive-0.8.1$>find
. -type f -name "*.h" | xargs grep "MAX_BYTE_LENGTH"
./src/odbc/src/cpp/HiveRowSet.h:    */// Forces all data retrieved to be no
more than MAX_BYTE_LENGTH*
./src/odbc/src/cpp/HiveRowSet.h:    char m_field_buffer[MAX_BYTE_LENGTH +
1];



 Does anyone know why 334 is hardcoded here and any specific reason for the
number 334 ?



Thanks,

Abhijeet.



-- 
Rgds,
Abhijeet J. Apsunde

Reply via email to