OmniSciDB
a5dc49c757
|
Functions | |
const Analyzer::Expr * | remove_truncate_int (const Analyzer::Expr *expr) |
bool | match_const_integer (const Analyzer::Expr *expr, const int64_t v) |
DatetruncField | get_dt_field (const Analyzer::Expr *ts, const Analyzer::Expr *interval_multiplier, const bool dt_hour) |
DatetruncField | get_dt_field (const Analyzer::Expr *ts, const Analyzer::Expr *off_arg) |
std::shared_ptr< Analyzer::Expr > | remove_cast_to_date (const Analyzer::Expr *expr) |
DatetruncField anonymous_namespace{DateTimePlusRewrite.cpp}::get_dt_field | ( | const Analyzer::Expr * | ts, |
const Analyzer::Expr * | interval_multiplier, | ||
const bool | dt_hour | ||
) |
Definition at line 67 of file DateTimePlusRewrite.cpp.
References dtHOUR, dtINVALID, dtMONTH, dtYEAR, kDAY, kDOY, kHOUR, kMINUS, kMULTIPLY, match_const_integer(), remove_cast_to_int(), and remove_truncate_int().
Referenced by get_dt_field(), and rewrite_to_date_trunc().
DatetruncField anonymous_namespace{DateTimePlusRewrite.cpp}::get_dt_field | ( | const Analyzer::Expr * | ts, |
const Analyzer::Expr * | off_arg | ||
) |
Definition at line 111 of file DateTimePlusRewrite.cpp.
References dtINVALID, get_dt_field(), and kINTERVAL_DAY_TIME.
bool anonymous_namespace{DateTimePlusRewrite.cpp}::match_const_integer | ( | const Analyzer::Expr * | expr, |
const int64_t | v | ||
) |
Definition at line 42 of file DateTimePlusRewrite.cpp.
References Analyzer::Expr::get_type_info(), kBIGINT, kINT, kSMALLINT, and kTINYINT.
Referenced by get_dt_field().
std::shared_ptr<Analyzer::Expr> anonymous_namespace{DateTimePlusRewrite.cpp}::remove_cast_to_date | ( | const Analyzer::Expr * | expr | ) |
Definition at line 143 of file DateTimePlusRewrite.cpp.
References Analyzer::UOper::get_operand(), Analyzer::Expr::get_type_info(), kCAST, kDATE, and kTIMESTAMP.
Referenced by rewrite_to_date_trunc().
const Analyzer::Expr* anonymous_namespace{DateTimePlusRewrite.cpp}::remove_truncate_int | ( | const Analyzer::Expr * | expr | ) |
Definition at line 28 of file DateTimePlusRewrite.cpp.
References CHECK_EQ.
Referenced by get_dt_field().