OmniSciDB
c1a53651b2
|
Functions | |
bool | has_same_dict (const SQLTypeInfo &type1, const SQLTypeInfo &type2) |
template<typename T > | |
T | floatFromDecimal (int64_t const dec, unsigned const scale) |
template<typename FLOAT_TYPE , typename INT_TYPE > | |
constexpr FLOAT_TYPE | maxRound () |
template<typename TO , typename FROM > | |
TO | safeNarrow (FROM const from) |
template<typename T > | |
T | roundDecimal (int64_t n, unsigned scale) |
template<typename TO , typename FROM > | |
TO | safeRound (FROM const from) |
template<typename T > | |
int64_t | safeScale (T from, unsigned const scale) |
bool | is_null_value (const SQLTypeInfo &ti, const Datum &constval) |
template<class T > | |
bool | expr_is (const std::shared_ptr< Analyzer::Expr > &expr) |
bool | is_expr_nullable (const Analyzer::Expr *expr) |
bool | is_in_values_nullable (const std::shared_ptr< Analyzer::Expr > &a, const std::list< std::shared_ptr< Analyzer::Expr >> &l) |
SQLTypes | get_ti_from_geo (const Geospatial::GeoBase *geo) |
bool Analyzer::anonymous_namespace{Analyzer.cpp}::expr_is | ( | const std::shared_ptr< Analyzer::Expr > & | expr | ) |
T Analyzer::anonymous_namespace{Analyzer.cpp}::floatFromDecimal | ( | int64_t const | dec, |
unsigned const | scale | ||
) |
Definition at line 796 of file Analyzer.cpp.
References shared::power10(), and heavydb.dtypes::T.
SQLTypes Analyzer::anonymous_namespace{Analyzer.cpp}::get_ti_from_geo | ( | const Geospatial::GeoBase * | geo | ) |
Definition at line 3790 of file Analyzer.cpp.
References CHECK, Geospatial::GeoBase::getType(), Geospatial::GeoBase::kLINESTRING, kLINESTRING, Geospatial::GeoBase::kMULTILINESTRING, kMULTILINESTRING, Geospatial::GeoBase::kMULTIPOINT, kMULTIPOINT, Geospatial::GeoBase::kMULTIPOLYGON, kMULTIPOLYGON, kNULLT, Geospatial::GeoBase::kPOINT, kPOINT, Geospatial::GeoBase::kPOLYGON, kPOLYGON, and UNREACHABLE.
Referenced by Analyzer::GeoConstant::GeoConstant(), and RelAlgTranslator::translateGeoFunctionArg().
bool Analyzer::anonymous_namespace{Analyzer.cpp}::has_same_dict | ( | const SQLTypeInfo & | type1, |
const SQLTypeInfo & | type2 | ||
) |
Definition at line 426 of file Analyzer.cpp.
References SQLTypeInfo::getStringDictKey(), and TRANSIENT_DICT.
Referenced by Analyzer::Expr::add_cast(), Analyzer::UOper::add_cast(), and Analyzer::BinOper::common_string_type().
bool Analyzer::anonymous_namespace{Analyzer.cpp}::is_expr_nullable | ( | const Analyzer::Expr * | expr | ) |
Definition at line 1637 of file Analyzer.cpp.
References Analyzer::Constant::get_is_null(), SQLTypeInfo::get_notnull(), and Analyzer::Expr::get_type_info().
Referenced by is_in_values_nullable().
bool Analyzer::anonymous_namespace{Analyzer.cpp}::is_in_values_nullable | ( | const std::shared_ptr< Analyzer::Expr > & | a, |
const std::list< std::shared_ptr< Analyzer::Expr >> & | l | ||
) |
Definition at line 1646 of file Analyzer.cpp.
References is_expr_nullable().
|
inline |
Definition at line 1209 of file Analyzer.cpp.
References Datum::arrayval, Datum::bigintval, Datum::doubleval, Datum::floatval, SQLTypeInfo::get_type(), Datum::intval, kARRAY, kBIGINT, kBOOLEAN, kCHAR, kDATE, kDECIMAL, kDOUBLE, kFLOAT, kINT, kINTERVAL_DAY_TIME, kINTERVAL_YEAR_MONTH, kLINESTRING, kMULTILINESTRING, kMULTIPOINT, kMULTIPOLYGON, kNULLT, kNUMERIC, kPOINT, kPOLYGON, kSMALLINT, kTEXT, kTIME, kTIMESTAMP, kTINYINT, kVARCHAR, NULL_BIGINT, NULL_BOOLEAN, NULL_DOUBLE, NULL_FLOAT, NULL_INT, NULL_SMALLINT, NULL_TINYINT, Datum::smallintval, Datum::stringval, Datum::tinyintval, and UNREACHABLE.
Referenced by Analyzer::Constant::do_cast().
constexpr FLOAT_TYPE Analyzer::anonymous_namespace{Analyzer.cpp}::maxRound | ( | ) |
Definition at line 808 of file Analyzer.cpp.
T Analyzer::anonymous_namespace{Analyzer.cpp}::roundDecimal | ( | int64_t | n, |
unsigned | scale | ||
) |
Definition at line 831 of file Analyzer.cpp.
References anonymous_namespace{Utm.h}::n, and heavydb.dtypes::T.
TO Analyzer::anonymous_namespace{Analyzer.cpp}::safeNarrow | ( | FROM const | from | ) |
Definition at line 820 of file Analyzer.cpp.
TO Analyzer::anonymous_namespace{Analyzer.cpp}::safeRound | ( | FROM const | from | ) |
int64_t Analyzer::anonymous_namespace{Analyzer.cpp}::safeScale | ( | T | from, |
unsigned const | scale | ||
) |
Definition at line 869 of file Analyzer.cpp.
Referenced by Analyzer::Constant::cast_number().