Skip to content

Missing define 'BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG' in CMake configuration #17

@fventuri-availity

Description

@fventuri-availity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions