OmniSciDB
c1a53651b2
|
Common Enum definitions for SQL processing. More...
Go to the source code of this file.
Macros | |
#define | IS_COMPARISON(X) |
#define | IS_LOGIC(X) ((X) == kAND || (X) == kOR) |
#define | IS_ARITHMETIC(X) ((X) == kMINUS || (X) == kPLUS || (X) == kMULTIPLY || (X) == kDIVIDE || (X) == kMODULO) |
#define | COMMUTE_COMPARISON(X) ((X) == kLT ? kGT : (X) == kLE ? kGE : (X) == kGT ? kLT : (X) == kGE ? kLE : (X)) |
#define | IS_UNARY(X) |
#define | IS_EQUIVALENCE(X) ((X) == kEQ || (X) == kBW_EQ || (X) == kOVERLAPS) |
Functions | |
std::string | toString (const JoinType &join_type) |
std::string | toString (const SQLQualifier &qualifier) |
std::string | toString (const SQLAgg &kind) |
SQLAgg | get_non_conditional_agg_type (SQLAgg const agg_type) |
std::string | toString (const SQLOps &op) |
std::ostream & | operator<< (std::ostream &os, const SqlStringOpKind kind) |
SqlStringOpKind | name_to_string_op_kind (const std::string &func_name) |
bool | string_op_returns_string (const SqlStringOpKind kind) |
std::string | toString (const SqlWindowFunctionKind &kind) |
std::string | toString (const SqlWindowFrameBoundType &kind) |
Common Enum definitions for SQL processing.
Definition in file sqldefs.h.
#define COMMUTE_COMPARISON | ( | X | ) | ((X) == kLT ? kGT : (X) == kLE ? kGE : (X) == kGT ? kLT : (X) == kGE ? kLE : (X)) |
Definition at line 64 of file sqldefs.h.
Referenced by Analyzer::BinOper::normalize_simple_predicate().
#define IS_ARITHMETIC | ( | X | ) | ((X) == kMINUS || (X) == kPLUS || (X) == kMULTIPLY || (X) == kDIVIDE || (X) == kMODULO) |
Definition at line 62 of file sqldefs.h.
Referenced by Analyzer::BinOper::analyze_type_info(), CodeGenerator::codegen(), CodeGenerator::codegenArith(), and anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::foldOper().
#define IS_COMPARISON | ( | X | ) |
Definition at line 58 of file sqldefs.h.
Referenced by Analyzer::BinOper::analyze_type_info(), anonymous_namespace{CompareIR.cpp}::check_array_comp_cond(), CodeGenerator::codegen(), CodeGenerator::codegenCmp(), anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::foldOper(), Parser::OperExpr::normalize(), Analyzer::BinOper::normalize_simple_predicate(), RelAlgTranslator::translateOper(), and anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::visitBinOper().
Definition at line 69 of file sqldefs.h.
Referenced by Executor::buildCurrentLevelHashTable(), anonymous_namespace{EquiJoinCondition.cpp}::can_combine_with(), anonymous_namespace{CompareIR.cpp}::check_array_comp_cond(), CodeGenerator::codegenCmp(), anonymous_namespace{FromTableReordering.cpp}::get_join_qual_cost(), PerfectJoinHashTable::getInstance(), CodeGenerator::hashJoinLhs(), anonymous_namespace{CompareIR.cpp}::make_eq(), CodeGenerator::needCastForHashJoinLhs(), and anonymous_namespace{QueryPlanDagExtractor.cpp}::IsEquivBinOp::operator()().
Definition at line 61 of file sqldefs.h.
Referenced by Analyzer::BinOper::analyze_type_info(), CodeGenerator::codegen(), CodeGenerator::codegenLogical(), and anonymous_namespace{ExpressionRewrite.cpp}::ConstantFoldingVisitor::foldOper().
#define IS_UNARY | ( | X | ) |
|
strong |
Enumerator | |
---|---|
INNER | |
LEFT | |
SEMI | |
ANTI | |
WINDOW_FUNCTION | |
WINDOW_FUNCTION_FRAMING | |
INVALID |
Definition at line 165 of file sqldefs.h.
enum SQLAgg |
Enumerator | |
---|---|
kAVG | |
kMIN | |
kMAX | |
kSUM | |
kCOUNT | |
kAPPROX_COUNT_DISTINCT | |
kAPPROX_QUANTILE | |
kSAMPLE | |
kSINGLE_VALUE | |
kMODE | |
kCOUNT_IF | |
kSUM_IF | |
kINVALID_AGG |
Definition at line 73 of file sqldefs.h.
enum SQLOps |
Definition at line 28 of file sqldefs.h.
enum SQLQualifier |
Enumerator | |
---|---|
kONE | |
kANY | |
kALL |
enum SQLStmtType |
Enumerator | |
---|---|
kSELECT | |
kUPDATE | |
kINSERT | |
kDELETE | |
kCREATE_TABLE |
Definition at line 159 of file sqldefs.h.
|
strong |
Definition at line 89 of file sqldefs.h.
|
strong |
|
strong |
Definition at line 120 of file sqldefs.h.
enum StorageOption |
Enumerator | |
---|---|
kDISK | |
kGPU | |
kCPU |
enum ViewRefreshOption |
Enumerator | |
---|---|
kMANUAL | |
kAUTO | |
kIMMEDIATE |
Definition at line 247 of file sqldefs.h.
References kCOUNT, kCOUNT_IF, kSUM, and kSUM_IF.
Referenced by anonymous_namespace{ResultSetReductionJIT.cpp}::emit_aggregate_one_nullable_value().
|
inline |
Definition at line 375 of file sqldefs.h.
References BASE64_DECODE, BASE64_ENCODE, CONCAT, logger::FATAL, INITCAP, INVALID, JSON_VALUE, LOG, LOWER, LPAD, LTRIM, OVERLAY, POSITION, REGEXP_REPLACE, REGEXP_SUBSTR, REPEAT, REPLACE, REVERSE, RPAD, RTRIM, SPLIT_PART, SUBSTRING, TRIM, TRY_STRING_CAST, and UPPER.
Referenced by RelAlgTranslator::translateStringOper().
|
inline |
Definition at line 319 of file sqldefs.h.
References BASE64_DECODE, BASE64_ENCODE, CONCAT, logger::FATAL, INITCAP, INVALID, JSON_VALUE, LOG, LOWER, LPAD, LTRIM, OVERLAY, POSITION, RCONCAT, REGEXP_REPLACE, REGEXP_SUBSTR, REPEAT, REPLACE, REVERSE, RPAD, RTRIM, SPLIT_PART, SUBSTRING, TRIM, TRY_STRING_CAST, and UPPER.
|
inline |
Definition at line 449 of file sqldefs.h.
References POSITION, and TRY_STRING_CAST.
Referenced by anonymous_namespace{RelAlgExecutor.cpp}::TextEncodingCastCountVisitor::visitStringOper().
|
inline |
Definition at line 181 of file sqldefs.h.
References ANTI, INNER, LEFT, SEMI, WINDOW_FUNCTION, and WINDOW_FUNCTION_FRAMING.
|
inline |
Definition at line 200 of file sqldefs.h.
References logger::FATAL, kALL, kANY, kONE, and LOG.
|
inline |
Definition at line 213 of file sqldefs.h.
References kAPPROX_COUNT_DISTINCT, kAPPROX_QUANTILE, kAVG, kCOUNT, kCOUNT_IF, kINVALID_AGG, kMAX, kMIN, kMODE, kSAMPLE, kSINGLE_VALUE, kSUM, kSUM_IF, and UNREACHABLE.
|
inline |
Definition at line 258 of file sqldefs.h.
References logger::FATAL, kAND, kARRAY_AT, kBW_EQ, kCAST, kDIVIDE, kENCODE_TEXT, kEQ, kEXISTS, kFUNCTION, kGE, kGT, kIN, kINVALID_OP, kISNOTNULL, kISNULL, kLE, kLT, kMINUS, kMODULO, kMULTIPLY, kNE, kNOT, kOR, kOVERLAPS, kPLUS, kUMINUS, kUNNEST, and LOG.
|
inline |
Definition at line 459 of file sqldefs.h.
References AVG, COUNT, COUNT_IF, CUME_DIST, DENSE_RANK, logger::FATAL, FIRST_VALUE, INVALID, LAG, LAG_IN_FRAME, LAST_VALUE, LEAD, LEAD_IN_FRAME, LOG, MAX, MIN, NTH_VALUE, NTH_VALUE_IN_FRAME, NTILE, PERCENT_RANK, RANK, ROW_NUMBER, SUM, SUM_IF, and SUM_INTERNAL.
|
inline |
Definition at line 512 of file sqldefs.h.
References CURRENT_ROW, EXPR_FOLLOWING, EXPR_PRECEDING, logger::FATAL, LOG, UNBOUNDED_FOLLOWING, UNBOUNDED_PRECEDING, and UNKNOWN.