MCPcopy Create free account
hub / github.com/apache/impala / TestValidTimestampValue

Method TestValidTimestampValue

be/src/exprs/expr-test.cc:1403–1406  ·  view source on GitHub ↗

Tests whether the returned TimestampValue is valid. We use this function for tests where the expected value is unknown, e.g., now().

Source from the content-addressed store, hash-verified

1401// Tests whether the returned TimestampValue is valid.
1402// We use this function for tests where the expected value is unknown, e.g., now().
1403void ExprTest::TestValidTimestampValue(const string& expr) {
1404 EXPECT_TRUE(
1405 ConvertValue<TimestampValue>(GetValue(expr, ColumnType(TYPE_TIMESTAMP))).HasDate());
1406}
1407
1408// We can't put this into TestValue() because GTest can't resolve
1409// the ambiguity in DateValue::operator==, even with the appropriate casts.

Callers

nothing calls this directly

Calls 2

HasDateMethod · 0.80
ColumnTypeClass · 0.50

Tested by

no test coverage detected