greenplumn CMissingStatsTest 源码
greenplumn CMissingStatsTest 代码
文件路径:/src/backend/gporca/server/include/unittest/gpopt/minidump/CMissingStatsTest.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2015 VMware, Inc. or its affiliates.
//
// @filename:
// CMissingStatsTest.h
//
// @doc:
// Test for ensuring the expected number of missing stats during optimization
// is correct.
//---------------------------------------------------------------------------
#ifndef GPOPT_CMissingStatsTest_H
#define GPOPT_CMissingStatsTest_H
#include "gpos/base.h"
#include "naucrates/statistics/CHistogram.h"
#include "naucrates/statistics/CStatistics.h"
namespace gpopt
{
//---------------------------------------------------------------------------
// @class:
// CMissingStatsTest
//
// @doc:
// Unittests
//
//---------------------------------------------------------------------------
class CMissingStatsTest
{
struct SMissingStatsTestCase
{
// input stats dxl file
const CHAR *m_szInputFile;
// expected number of columns with missing statistics
ULONG m_ulExpectedMissingStats;
}; // SMissingStatsTestCase
private:
// counter used to mark last successful test
static gpos::ULONG m_ulMissingStatsTestCounter;
public:
// unittests
static gpos::GPOS_RESULT EresUnittest();
static gpos::GPOS_RESULT EresUnittest_RunTests();
}; // class CMissingStatsTest
} // namespace gpopt
#endif // !GPOPT_CMissingStatsTest_H
// EOF
相关信息
相关文章
greenplumn CArrayExpansionTest 源码
greenplumn CCollapseProjectTest 源码
greenplumn CConstTblGetTest 源码
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦