Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
template<> | |
void | TestCast (const string &stmt, const char *val, bool timestamp_out_of_range) |
Protected Types | |
typedef map< int, int64_t > | IntValMap |
typedef unordered_map< int, double > | FloatValMap |
Protected Member Functions | |
virtual void | SetUp () |
void | GetValue (const string &expr, const ColumnType &expr_type, void **interpreted_value, bool expect_error=false) |
void * | ConvertValue (const ColumnType &type, const string &value) |
void | TestStringValue (const string &expr, const string &expected_result) |
void | TestCharValue (const string &expr, const string &expected_result, const ColumnType &type) |
void | TestTimestampValue (const string &expr, const TimestampValue &expected_result, const int64_t tolerance_in_seconds=0) |
void | TestValidTimestampValue (const string &expr) |
void | TestTimestampUnixEpochConversions (int64_t unix_time_at_local_epoch, string local_time_at_unix_epoch) |
template<typename T > | |
void | TestDecimalValue (const string &expr, const T &expected_result, const ColumnType &expected_type) |
template<class T > | |
void | TestValue (const string &expr, const ColumnType &expr_type, const T &expected_result) |
void | TestIsNull (const string &expr, const ColumnType &expr_type) |
void | TestError (const string &expr) |
void | TestNonOkStatus (const string &expr) |
template<typename T > | |
void | TestFixedPointComparisons (bool test_boundaries) |
template<typename T > | |
void | TestFloatingPointComparisons (bool test_boundaries) |
void | TestStringComparisons () |
void | TestDecimalComparisons () |
void | TestNullComparison (const string &op) |
void | TestNullComparisons () |
void | TestComparison (const string &smaller, const string &larger, bool compare_strings) |
void | TestBinaryPredicates (const string &value, bool compare_strings) |
template<typename T > | |
void | TestFixedPointLimits (const ColumnType &type) |
template<typename T > | |
void | TestFloatingPointLimits (const ColumnType &type) |
template<typename LeftOp , typename RightOp , typename Result > | |
void | TestFixedResultTypeOps (LeftOp a, RightOp b, const ColumnType &expected_type) |
template<typename LeftOp , typename RightOp > | |
void | TestVariableResultTypeIntOps (LeftOp a, RightOp b, const ColumnType &expected_type) |
template<typename NonNullOp , typename CastType > | |
void | TestNullOperandFixedResultTypeOps (NonNullOp op, const ColumnType &expected_type) |
template<typename NonNullOp > | |
void | TestNullOperandVariableResultTypeIntOps (NonNullOp op, const ColumnType &expected_type) |
void | TestNullOperandsArithmeticOps () |
template<typename T > | |
void | TestCast (const string &stmt, T val, bool timestamp_out_of_range=false) |
Protected Attributes | |
IntValMap | min_int_values_ |
FloatValMap | min_float_values_ |
unordered_map< int, string > | default_type_strs_ |
string | default_bool_str_ |
string | default_string_str_ |
string | default_timestamp_str_ |
string | default_decimal_str_ |
bool | default_bool_val_ |
string | default_string_val_ |
TimestampValue | default_timestamp_val_ |
ExprValue | expr_value_ |
Definition at line 142 of file expr-test.cc.
|
protected |
Definition at line 153 of file expr-test.cc.
|
protected |
Definition at line 148 of file expr-test.cc.
|
inlineprotected |
Definition at line 233 of file expr-test.cc.
References impala::ColumnType::GetByteSize(), impala::ColumnType::type, impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_CHAR, impala::TYPE_DECIMAL, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_SMALLINT, impala::TYPE_STRING, impala::TYPE_TIMESTAMP, and impala::TYPE_TINYINT.
|
inlineprotected |
Definition at line 217 of file expr-test.cc.
References impala::ImpaladQueryExecutor::Exec(), impala::executor_, impala::ImpaladQueryExecutor::FetchResult(), impala::Status::GetDetail(), impala::Status::ok(), impala::ColumnType::type, and impala::TypeToOdbcString().
|
inlineprotectedvirtual |
Definition at line 173 of file expr-test.cc.
References impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DECIMAL, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_SMALLINT, impala::TYPE_STRING, impala::TYPE_TIMESTAMP, and impala::TYPE_TINYINT.
|
inlineprotected |
Definition at line 613 of file expr-test.cc.
References impala::TYPE_BOOLEAN.
|
inlineprotected |
Definition at line 779 of file expr-test.cc.
References impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_SMALLINT, impala::TYPE_TIMESTAMP, and impala::TYPE_TINYINT.
void impala::ExprTest::TestCast | ( | const string & | stmt, |
const char * | val, | ||
bool | timestamp_out_of_range | ||
) |
Definition at line 801 of file expr-test.cc.
References impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_SMALLINT, and impala::TYPE_TINYINT.
|
inlineprotected |
Definition at line 297 of file expr-test.cc.
References impala::StringValue::len, and impala::StringValue::ptr.
|
inlineprotected |
Definition at line 562 of file expr-test.cc.
References impala::TYPE_BOOLEAN.
|
inlineprotected |
Definition at line 511 of file expr-test.cc.
References impala::TYPE_BOOLEAN.
|
inlineprotected |
Definition at line 363 of file expr-test.cc.
|
inlineprotected |
Definition at line 423 of file expr-test.cc.
References impala::INVALID_TYPE.
|
inlineprotected |
Definition at line 435 of file expr-test.cc.
|
inlineprotected |
Definition at line 662 of file expr-test.cc.
|
inlineprotected |
Definition at line 689 of file expr-test.cc.
References impala::TYPE_DOUBLE.
|
inlineprotected |
Definition at line 451 of file expr-test.cc.
References impala::TYPE_BOOLEAN.
|
inlineprotected |
Definition at line 671 of file expr-test.cc.
|
inlineprotected |
Definition at line 417 of file expr-test.cc.
|
inlineprotected |
Definition at line 428 of file expr-test.cc.
References impala::ImpaladQueryExecutor::Exec(), impala::executor_, and impala::Status::ok().
|
inlineprotected |
Definition at line 531 of file expr-test.cc.
References impala::TYPE_BOOLEAN.
|
inlineprotected |
Definition at line 551 of file expr-test.cc.
|
inlineprotected |
Definition at line 727 of file expr-test.cc.
References impala::TYPE_DOUBLE.
|
inlineprotected |
Definition at line 764 of file expr-test.cc.
References impala::TYPE_DOUBLE, and impala::TYPE_INT.
|
inlineprotected |
Definition at line 745 of file expr-test.cc.
|
inlineprotected |
Definition at line 487 of file expr-test.cc.
References impala::TYPE_BOOLEAN.
|
inlineprotected |
Definition at line 290 of file expr-test.cc.
References impala::StringValue::len, impala::StringValue::ptr, and impala::TYPE_STRING.
|
inlineprotected |
Definition at line 332 of file expr-test.cc.
References impala::TYPE_BIGINT, and impala::TYPE_STRING.
|
inlineprotected |
Definition at line 307 of file expr-test.cc.
References impala::abs(), impala::TimestampValue::ToUnixTime(), and impala::TYPE_TIMESTAMP.
|
inlineprotected |
Definition at line 321 of file expr-test.cc.
References impala::TimestampValue::HasDateOrTime(), and impala::TYPE_TIMESTAMP.
|
inlineprotected |
Definition at line 373 of file expr-test.cc.
References impala::ColumnType::type, impala::TYPE_BIGINT, impala::TYPE_BOOLEAN, impala::TYPE_DOUBLE, impala::TYPE_FLOAT, impala::TYPE_INT, impala::TYPE_SMALLINT, and impala::TYPE_TINYINT.
|
inlineprotected |
Definition at line 708 of file expr-test.cc.
|
protected |
Definition at line 161 of file expr-test.cc.
|
protected |
Definition at line 166 of file expr-test.cc.
|
protected |
Definition at line 164 of file expr-test.cc.
|
protected |
Definition at line 162 of file expr-test.cc.
|
protected |
Definition at line 167 of file expr-test.cc.
|
protected |
Definition at line 163 of file expr-test.cc.
|
protected |
Definition at line 168 of file expr-test.cc.
|
protected |
Definition at line 160 of file expr-test.cc.
|
protected |
Definition at line 171 of file expr-test.cc.
|
protected |
Definition at line 154 of file expr-test.cc.
|
protected |
Definition at line 149 of file expr-test.cc.