16 #ifndef IMPALA_EXPRS_TIMESTAMP_FUNCTIONS_H
17 #define IMPALA_EXPRS_TIMESTAMP_FUNCTIONS_H
19 #include <boost/date_time/posix_time/posix_time.hpp>
20 #include <boost/date_time/gregorian/gregorian.hpp>
21 #include <boost/date_time/time_zone_base.hpp>
22 #include <boost/date_time/local_time/local_time.hpp>
23 #include <boost/thread/thread.hpp>
29 using namespace impala_udf;
31 using namespace impala_udf;
94 template <
bool ISADD,
class VALTYPE,
class UNIT>
96 const VALTYPE&
count);
99 template <
bool ISADD,
class VALTYPE,
class UNIT>
101 const VALTYPE& count);
131 static boost::local_time::time_zone_ptr FindTimezone(
const std::string& tz,
static const char * MONDAY
Static result values for DayName() function.
Functions to load and access the timestamp database.
static std::vector< std::string > tz_region_list_
This object has a compatible storage format with boost::ptime.
static const char * WEDNESDAY
static const char * SUNDAY
static const char * TUESDAY
TODO: Reconsider whether this class needs to exist.
static const char * SATURDAY
static const char * FRIDAY
static boost::local_time::tz_database tz_database_
static const char * TIMEZONE_DATABASE_STR
static const char * THURSDAY
static const boost::local_time::time_zone_ptr TIMEZONE_MSK_2011_NODST
Moscow Timezone No Daylight Savings Time (GMT+4), for use after March 2011.