Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
aggregate-functions-test.cc File Reference
#include <iostream>
#include <gtest/gtest.h>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/foreach.hpp>
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/variance.hpp>
#include "common/logging.h"
#include "exprs/aggregate-functions.h"
#include "runtime/multi-precision.h"
#include "udf/udf.h"
#include "udf/uda-test-harness.h"
#include "util/decimal-util.h"
#include "common/names.h"
Include dependency graph for aggregate-functions-test.cc:

Go to the source code of this file.

Functions

template<int RANGE_START, int RANGE_END>
bool CheckAppxMedian (const IntVal &actual, const IntVal &expected)
 
bool CheckHistogramDistribution (const StringVal &actual, const StringVal &max_expected_stdev)
 
 TEST (HistogramTest, TestInt)
 
 TEST (HistogramTest, TestDecimal)
 
 TEST (HistogramTest, TestString)
 
int main (int argc, char **argv)
 

Function Documentation

template<int RANGE_START, int RANGE_END>
bool CheckAppxMedian ( const IntVal actual,
const IntVal expected 
)

Definition at line 43 of file aggregate-functions-test.cc.

References impala_udf::IntVal::val.

bool CheckHistogramDistribution ( const StringVal actual,
const StringVal max_expected_stdev 
)

Definition at line 47 of file aggregate-functions-test.cc.

References impala_udf::StringVal::len, and impala_udf::StringVal::ptr.

Referenced by TEST().

int main ( int  argc,
char **  argv 
)