OmniSciDB
a5dc49c757
|
Functions | |
bool | has_same_dict (const SQLTypeInfo &type1, const SQLTypeInfo &type2) |
SQLTypeInfo | make_transient_dict_type (SQLTypeInfo sql_type_info_copy) |
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) |
int32_t | ordered_bucket (double const lower_bound, double const upper_bound, int32_t const partition_count, double const value) |
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 820 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 4007 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 443 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 1664 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 1673 of file Analyzer.cpp.
References is_expr_nullable().
|
inline |
Definition at line 1233 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().
SQLTypeInfo Analyzer::anonymous_namespace{Analyzer.cpp}::make_transient_dict_type | ( | SQLTypeInfo | sql_type_info_copy | ) |
Definition at line 764 of file Analyzer.cpp.
References kENCODING_DICT, kTEXT, shared::StringDictKey::kTransientDictKey, SQLTypeInfo::set_comp_param(), SQLTypeInfo::set_compression(), SQLTypeInfo::set_fixed_size(), SQLTypeInfo::set_type(), SQLTypeInfo::setStringDictKey(), and TRANSIENT_DICT_ID.
Referenced by Analyzer::Expr::add_cast(), and Analyzer::GeoOperator::add_cast().
constexpr FLOAT_TYPE Analyzer::anonymous_namespace{Analyzer.cpp}::maxRound | ( | ) |
Definition at line 832 of file Analyzer.cpp.
int32_t Analyzer::anonymous_namespace{Analyzer.cpp}::ordered_bucket | ( | double const | lower_bound, |
double const | upper_bound, | ||
int32_t const | partition_count, | ||
double const | value | ||
) |
Definition at line 3974 of file Analyzer.cpp.
References gpu_enabled::lower_bound(), and width.
Referenced by Analyzer::WidthBucketExpr::compute_bucket().
T Analyzer::anonymous_namespace{Analyzer.cpp}::roundDecimal | ( | int64_t | n, |
unsigned | scale | ||
) |
Definition at line 855 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 844 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 893 of file Analyzer.cpp.
Referenced by Analyzer::Constant::cast_number().