OmniSciDB
a5dc49c757
|
#include "DateAdd.h"
#include "DateTruncate.h"
#include "../Shared/sqldefs.h"
#include "../Shared/sqltypes.h"
#include "Logger/Logger.h"
Go to the source code of this file.
Namespaces | |
Analyzer | |
Functions | |
SQLOps | to_sql_op (const std::string &op_str) |
SQLAgg | to_agg_kind (const std::string &agg_name) |
SQLTypes | to_sql_type (const std::string &type_name) |
SQLTypeInfo | get_agg_type (const SQLAgg agg_kind, const Analyzer::Expr *arg_expr) |
ExtractField | to_datepart_field (const std::string &) |
DateaddField | to_dateadd_field (const std::string &) |
DatetruncField | to_datediff_field (const std::string &) |
std::shared_ptr < Analyzer::Constant > | make_fp_constant (const int64_t val, const SQLTypeInfo &ti) |
SQLTypeInfo get_agg_type | ( | const SQLAgg | agg_kind, |
const Analyzer::Expr * | arg_expr | ||
) |
Definition at line 26 of file CalciteDeserializerUtils.cpp.
References g_bigint_count, Analyzer::Expr::get_type_info(), SQLTypeInfo::get_type_name(), SQLTypeInfo::is_integer(), SQLTypeInfo::is_varlen(), kAPPROX_COUNT_DISTINCT, kAPPROX_QUANTILE, kAVG, kBIGINT, kCOUNT, kCOUNT_IF, kDOUBLE, kINT, kMAX, kMIN, kMODE, kSAMPLE, kSINGLE_VALUE, kSUM, kSUM_IF, and UNREACHABLE.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::decide_approx_count_distinct_implementation(), and RelAlgTranslator::translateAggregateRex().
std::shared_ptr<Analyzer::Constant> make_fp_constant | ( | const int64_t | val, |
const SQLTypeInfo & | ti | ||
) |
Definition at line 213 of file CalciteDeserializerUtils.cpp.
References CHECK, Datum::doubleval, Datum::floatval, SQLTypeInfo::get_type(), kDOUBLE, and kFLOAT.
Referenced by RelAlgTranslator::translateLiteral().
|
inline |
Definition at line 97 of file CalciteDeserializerUtils.h.
References kAPPROX_COUNT_DISTINCT, kAPPROX_QUANTILE, kAVG, kCOUNT, kCOUNT_IF, kMAX, kMIN, kMODE, kSAMPLE, kSINGLE_VALUE, kSUM, and kSUM_IF.
Referenced by anonymous_namespace{RelAlgDag.cpp}::parse_aggregate_expr().
DateaddField to_dateadd_field | ( | const std::string & | ) |
Definition at line 111 of file CalciteDeserializerUtils.cpp.
References daCENTURY, daDAY, daDECADE, daHOUR, daMICROSECOND, daMILLENNIUM, daMILLISECOND, daMINUTE, daMONTH, daNANOSECOND, daQUARTER, daSECOND, daWEEK, daWEEKDAY, and daYEAR.
Referenced by RelAlgTranslator::translateDateadd(), and RelAlgTranslator::translateIntervalExprForWindowFraming().
DatetruncField to_datediff_field | ( | const std::string & | ) |
Definition at line 160 of file CalciteDeserializerUtils.cpp.
References dtCENTURY, dtDAY, dtDECADE, dtHOUR, dtMICROSECOND, dtMILLENNIUM, dtMILLISECOND, dtMINUTE, dtMONTH, dtNANOSECOND, dtQUARTER, dtQUARTERDAY, dtSECOND, dtWEEK, dtWEEK_SATURDAY, dtWEEK_SUNDAY, and dtYEAR.
Referenced by RelAlgTranslator::translateDatediff().
ExtractField to_datepart_field | ( | const std::string & | ) |
Definition at line 59 of file CalciteDeserializerUtils.cpp.
References kDAY, kDOY, kHOUR, kISODOW, kMICROSECOND, kMILLISECOND, kMINUTE, kMONTH, kNANOSECOND, kQUARTER, kQUARTERDAY, kSECOND, kWEEK, kWEEK_SATURDAY, kWEEK_SUNDAY, and kYEAR.
Referenced by RelAlgTranslator::translateDatepart().
|
inline |
Definition at line 27 of file CalciteDeserializerUtils.h.
References kAND, kBW_EQ, kCAST, kDIVIDE, kENCODE_TEXT, kEQ, kFUNCTION, kGE, kGT, kIN, kISNOTNULL, kISNULL, kLE, kLT, kMINUS, kMODULO, kMULTIPLY, kNE, kNOT, kOR, kPLUS, and kUNNEST.
Referenced by anonymous_namespace{RelAlgDag.cpp}::parse_operator().
|
inline |
Definition at line 139 of file CalciteDeserializerUtils.h.
References kARRAY, kBIGINT, kBOOLEAN, kDATE, kDECIMAL, kDOUBLE, kEVAL_CONTEXT_TYPE, kFLOAT, kGEOGRAPHY, kGEOMETRY, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNULLT, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, and kTINYINT.
Referenced by Parser::column_from_json(), anonymous_namespace{RelAlgDag.cpp}::parse_literal(), and anonymous_namespace{RelAlgDag.cpp}::parse_type().