Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include "exprs/decimal-operators.h"
#include <iomanip>
#include <sstream>
#include <math.h>
#include "exprs/anyval-util.h"
#include "exprs/case-expr.h"
#include "exprs/expr.h"
#include "runtime/tuple-row.h"
#include "util/decimal-util.h"
#include "util/string-parser.h"
#include "common/names.h"
Go to the source code of this file.
Namespaces | |
impala | |
This file contains type definitions that are used throughout the code base. | |
Macros | |
#define | RETURN_IF_OVERFLOW(context, overflow) |
#define | CAST_INT_TO_DECIMAL(from_type) |
#define | CAST_FLOAT_TO_DECIMAL(from_type) |
#define | CAST_DECIMAL_TO_INT(to_type) |
#define | CAST_DECIMAL_TO_FLOAT(to_type) |
#define | DECIMAL_ARITHMETIC_OP(FN_NAME, OP_FN) |
#define | DECIMAL_ARITHMETIC_OP_CHECK_NAN(FN_NAME, OP_FN) |
#define | DECIMAL_BINARY_OP(FN_NAME, OP_FN) |
Functions | |
static Decimal4Value | impala::GetDecimal4Value (const DecimalVal &val, const ColumnType &type, bool *overflow) |
static Decimal8Value | impala::GetDecimal8Value (const DecimalVal &val, const ColumnType &type, bool *overflow) |
static Decimal16Value | impala::GetDecimal16Value (const DecimalVal &val, const ColumnType &type, bool *overflow) |
#define CAST_DECIMAL_TO_FLOAT | ( | to_type | ) |
Definition at line 268 of file decimal-operators.cc.
#define CAST_DECIMAL_TO_INT | ( | to_type | ) |
Definition at line 244 of file decimal-operators.cc.
#define CAST_FLOAT_TO_DECIMAL | ( | from_type | ) |
Definition at line 236 of file decimal-operators.cc.
#define CAST_INT_TO_DECIMAL | ( | from_type | ) |
Definition at line 228 of file decimal-operators.cc.
#define DECIMAL_ARITHMETIC_OP | ( | FN_NAME, | |
OP_FN | |||
) |
Definition at line 552 of file decimal-operators.cc.
#define DECIMAL_ARITHMETIC_OP_CHECK_NAN | ( | FN_NAME, | |
OP_FN | |||
) |
Definition at line 591 of file decimal-operators.cc.
#define DECIMAL_BINARY_OP | ( | FN_NAME, | |
OP_FN | |||
) |
Definition at line 634 of file decimal-operators.cc.
#define RETURN_IF_OVERFLOW | ( | context, | |
overflow | |||
) |
Definition at line 32 of file decimal-operators.cc.
Referenced by impala::DecimalOperators::FloatToDecimalVal(), impala::DecimalOperators::IntToDecimalVal(), and impala::DecimalOperators::ScaleDecimalValue().