Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing define 'BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG' in CMake configuration #17

Open
fventuri-availity opened this issue Jul 5, 2017 · 0 comments

Comments

@fventuri-availity
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant