15 package com.cloudera.impala.catalog;
17 import static org.junit.Assert.assertTrue;
19 import java.math.BigDecimal;
20 import java.util.List;
23 import com.cloudera.impala.analysis.*;
24 import com.google.common.collect.Lists;
27 import static com.cloudera.impala.catalog.HdfsPartition.comparePartitionKeyValues;
60 List< List<LiteralExpr> > allLists = Lists.newArrayList();
69 for (List<LiteralExpr> l1: allLists) {
71 for (List<LiteralExpr> l2: allLists) {
73 for (List<LiteralExpr> l3: allLists) {
79 List<LiteralExpr> valuesTest = Lists.newArrayList();
89 assertTrue(Integer.signum(comparePartitionKeyValues(o1, o2)) ==
90 -Integer.signum(comparePartitionKeyValues(o2, o1)));
93 List<LiteralExpr> o3) {
95 if ((comparePartitionKeyValues(o1, o2) > 0) &&
96 (comparePartitionKeyValues(o2, o3) > 0)) {
97 assertTrue(comparePartitionKeyValues(o1, o3) > 0);
102 assertTrue(comparePartitionKeyValues(o1, o1) == 0);
105 List<LiteralExpr> o3) {
107 if (comparePartitionKeyValues(o1, o2) == 0) {
108 assertTrue(Integer.signum(comparePartitionKeyValues(o1, o3)) ==
109 Integer.signum(comparePartitionKeyValues(o2, o3)));
static final ScalarType BIGINT
List< LiteralExpr > valuesDecimal2_
void verifyReflexive(List< LiteralExpr > o1)
static final ScalarType STRING
List< LiteralExpr > valuesMixed2_
List< LiteralExpr > valuesDecimal1_
void verifyAntiSymmetric(List< LiteralExpr > o1, List< LiteralExpr > o2, List< LiteralExpr > o3)
List< LiteralExpr > valuesDecimal_
List< LiteralExpr > valuesNull_
uint64_t Test(T *ht, const ProbeTuple *input, uint64_t num_tuples)
List< LiteralExpr > valuesMixed1_
List< LiteralExpr > valuesMixed_
void verifyTransitive(List< LiteralExpr > o1, List< LiteralExpr > o2, List< LiteralExpr > o3)
void verifySymmetric(List< LiteralExpr > o1, List< LiteralExpr > o2)