greenplumn CPhysicalParallelUnionAllTest 源码

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

greenplumn CPhysicalParallelUnionAllTest 代码

文件路径:/src/backend/gporca/server/src/unittest/gpopt/minidump/CPhysicalParallelUnionAllTest.cpp

//	Greenplum Database
//	Copyright (C) 2016 VMware, Inc. or its affiliates.


#include "unittest/gpopt/minidump/CPhysicalParallelUnionAllTest.h"

#include "gpos/task/CAutoTraceFlag.h"
#include "gpos/test/CUnittest.h"

#include "naucrates/traceflags/traceflags.h"

#include "unittest/gpopt/CTestUtils.h"

using namespace gpos;

static ULONG ulCounter = 0;

static const CHAR *rgszFileNames[] = {
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/NoOpMotionUsesOnlyGroupOutputColumns.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/RedundantMotionParallelUnionAll.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/ParallelUnionAllWithNoRedistributableColumns.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/ParallelUnionAllWithSingleNotRedistributableColumn.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/TwoHashedTables.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/ParallelAppend-Select.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/ParallelAppend-Insert.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/ParallelAppend-ConstTable.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/ParallelUnionAllWithNotEqualNumOfDistrColumns.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/FallBackToSerialAppend.mdp",
	"../data/dxl/minidump/CPhysicalParallelUnionAllTest/RandomDistributedChildrenUnhashableColumns.mdp",
};

namespace gpopt
{
GPOS_RESULT
CPhysicalParallelUnionAllTest::EresUnittest()
{
	BOOL fMatchPlans = true;
	BOOL fTestSpacePruning = true;
	CAutoTraceFlag atfParallelAppend(gpos::EopttraceEnableParallelAppend, true);
	return CTestUtils::EresUnittest_RunTestsWithoutAdditionalTraceFlags(
		rgszFileNames, &ulCounter, GPOS_ARRAY_SIZE(rgszFileNames), fMatchPlans,
		fTestSpacePruning);
}

}  // namespace gpopt

相关信息

greenplumn 源码目录

相关文章

greenplumn CAggTest 源码

greenplumn CArrayExpansionTest 源码

greenplumn CBitmapTest 源码

greenplumn CCTETest 源码

greenplumn CCastTest 源码

greenplumn CCollapseProjectTest 源码

greenplumn CConstTblGetTest 源码

greenplumn CDMLTest 源码

greenplumn CDirectDispatchTest 源码

greenplumn CEscapeMechanismTest 源码

0  赞