You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that the version of Impala that comes with Cloudera CDH 5.11 (and possibly with previous versions of CDH) was compiled using the define 'BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG' (see here - http://www.boost.org/doc/libs/1_64_0/doc/html/date_time/details.html#date_time.buildinfo). This define causes the boost 'time_duration' type to use nanoseconds and be 96 bits long (the default is 64 bit).
If a C++ Impala UDF uses boost time/date functions (for instance to deal with Impala timestamps) and is compiled without this define, the results will likely be incorrect and it might cause the Impala daemon to crash.
A simple way to define the compile preprocessor flag 'BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG' is by adding the following line to 'CMakeLists.txt':
Please note that the version of Impala that comes with Cloudera CDH 5.11 (and possibly with previous versions of CDH) was compiled using the define 'BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG' (see here - http://www.boost.org/doc/libs/1_64_0/doc/html/date_time/details.html#date_time.buildinfo). This define causes the boost 'time_duration' type to use nanoseconds and be 96 bits long (the default is 64 bit).
If a C++ Impala UDF uses boost time/date functions (for instance to deal with Impala timestamps) and is compiled without this define, the results will likely be incorrect and it might cause the Impala daemon to crash.
A simple way to define the compile preprocessor flag 'BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG' is by adding the following line to 'CMakeLists.txt':
add_definitions(-DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG)
Thanks,
Franco Venturi
The text was updated successfully, but these errors were encountered: