greenplumn CMissingStatsTest 源码

  • 2022-08-18
  • 浏览 (297)

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 源码目录

相关文章

greenplumn CAggTest 源码

greenplumn CArrayExpansionTest 源码

greenplumn CBitmapTest 源码

greenplumn CCTETest 源码

greenplumn CCastTest 源码

greenplumn CCollapseProjectTest 源码

greenplumn CConstTblGetTest 源码

greenplumn CDMLTest 源码

greenplumn CDirectDispatchTest 源码

greenplumn CEscapeMechanismTest 源码

0  赞