提交 46d4f74a 编写于 作者: B Bhuvnesh Chaudhary

Pass Row Number and Rank Oid to Optimizer Config

上级 7ae23a6a
......@@ -40,10 +40,10 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <string.h>
]],
[
return strncmp("2.52.", GPORCA_VERSION_STRING, 5);
return strncmp("2.53.", GPORCA_VERSION_STRING, 5);
])],
[AC_MSG_RESULT([[ok]])],
[AC_MSG_ERROR([Your ORCA version is expected to be 2.52.XXX])]
[AC_MSG_ERROR([Your ORCA version is expected to be 2.53.XXX])]
)
AC_LANG_POP([C++])
])# PGAC_CHECK_ORCA_VERSION
......
......@@ -12587,7 +12587,7 @@ int
main ()
{
return strncmp("2.52.", GPORCA_VERSION_STRING, 5);
return strncmp("2.53.", GPORCA_VERSION_STRING, 5);
;
return 0;
......@@ -12597,7 +12597,7 @@ if ac_fn_cxx_try_run "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
$as_echo "ok" >&6; }
else
as_fn_error $? "Your ORCA version is expected to be 2.52.XXX" "$LINENO" 5
as_fn_error $? "Your ORCA version is expected to be 2.53.XXX" "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
......
[requires]
orca/v2.52.0@gpdb/stable
orca/v2.53.0@gpdb/stable
[imports]
include, * -> build/include
......
......@@ -121,7 +121,7 @@ sync_tools: opt_write_test /opt/releng/apache-ant
@echo "Resolve finished";
ifeq "$(findstring aix,$(BLD_ARCH))" ""
LD_LIBRARY_PATH='' wget -O - https://github.com/greenplum-db/gporca/releases/download/v2.52.0/bin_orca_centos5_release.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
LD_LIBRARY_PATH='' wget -O - https://github.com/greenplum-db/gporca/releases/download/v2.53.0/bin_orca_centos5_release.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
endif
clean_tools: opt_write_test
......
......@@ -30,6 +30,7 @@
#include "cdb/cdbvars.h"
#include "utils/guc.h"
#include "utils/fmgroids.h"
#include "gpos/base.h"
#include "gpos/error/CException.h"
......@@ -94,6 +95,9 @@ using namespace gpdbcost;
// definition of default AutoMemoryPool
#define AUTO_MEM_POOL(amp) CAutoMemoryPool amp(CAutoMemoryPool::ElcExc, CMemoryPoolManager::EatTracker, false /* fThreadSafe */)
// OID for Window RANK function
#define F_WINDOW_RANK_OID 7001
// default id for the source system
const CSystemId sysidDefault(IMDId::EmdidGPDB, GPOS_WSZ_STR_LENGTH("GPDB"));
......@@ -806,7 +810,8 @@ COptTasks::PoconfCreate
ulBroadcastThreshold,
false /* don't create Assert nodes for constraints, we'll
* enforce them ourselves in the executor */
)
),
GPOS_NEW(pmp) CWindowOids(OID(F_WINDOW_DUMMY), OID(F_WINDOW_RANK_OID))
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册