greenplumn gpopt_mock 源码

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

greenplumn gpopt_mock 代码

文件路径:/src/test/unit/mock/gpopt_mock.c

#include "postgres.h"

#include "lib/stringinfo.h"
#include "nodes/parsenodes.h"
#include "nodes/plannodes.h"

char *
SerializeDXLPlan(Query *pquery)
{
	elog(ERROR, "mock implementation of SerializeDXLPlan called");
	return NULL;
}

PlannedStmt *
GPOPTOptimizedPlan(Query *pquery, bool pfUnexpectedFailure)
{
	elog(ERROR, "mock implementation of GPOPTOptimizedPlan called");
	return NULL;
}

Datum
LibraryVersion(void)
{
	elog(ERROR, "mock implementation of LibraryVersion called");
	return NULL;
}

Datum
EnableXform(PG_FUNCTION_ARGS)
{
	elog(ERROR, "mock implementation of EnableXform called");
	return (Datum) 0;
}

Datum
DisableXform(PG_FUNCTION_ARGS)
{
	elog(ERROR, "mock implementation of EnableXform called");
	return (Datum) 0;
}

void
InitGPOPT ()
{
	elog(ERROR, "mock implementation of InitGPOPT called");
}

void
TerminateGPOPT ()
{
	elog(ERROR, "mock implementation of TerminateGPOPT called");
}

相关信息

greenplumn 源码目录

相关文章

greenplumn faultinjector_warnings 源码

greenplumn fmgrtab_mock 源码

greenplumn main_mock 源码

greenplumn rmgr_mock 源码

0  赞