15 package com.cloudera.impala.analysis;
17 import static org.junit.Assert.fail;
62 expr = LiteralExpr.create(value, type);
63 }
catch (Exception e) {
64 fail(
"\nFailed to create LiteralExpr of type: " + type.toString() +
" from: " + value
65 +
" due to " + e.getMessage() +
"\n");
68 fail(
"\nFailed to create LiteralExpr\n");
73 boolean failure =
false;
76 expr = LiteralExpr.create(value, type);
77 }
catch (Exception e) {
84 fail(
"\nUnexpectedly succeeded to create LiteralExpr of type: "
85 + type.toString() +
" from: " + value +
"\n");
static final ScalarType BIGINT
static final ScalarType DATE
static final ScalarType STRING
static final ScalarType BOOLEAN
static final ScalarType SMALLINT
static final ScalarType FLOAT
void testLiteralExprPositive(String value, Type type)
static final ScalarType DOUBLE
static final ScalarType TINYINT
static final ScalarType INT
uint64_t Test(T *ht, const ProbeTuple *input, uint64_t num_tuples)
static ScalarType createDecimalType()
void testLiteralExprNegative(String value, Type type)
static final ScalarType DATETIME
static final ScalarType INVALID
static final ScalarType TIMESTAMP