提交 e36d53e8 编写于 作者: B Bhuvnesh Chaudhary

Bump ORCA to v3.41.0 and update test cases

上级 205e5171
......@@ -40,10 +40,10 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <string.h>
]],
[
return strncmp("3.40.", GPORCA_VERSION_STRING, 5);
return strncmp("3.41.", GPORCA_VERSION_STRING, 5);
])],
[AC_MSG_RESULT([[ok]])],
[AC_MSG_ERROR([Your ORCA version is expected to be 3.40.XXX])]
[AC_MSG_ERROR([Your ORCA version is expected to be 3.41.XXX])]
)
AC_LANG_POP([C++])
])# PGAC_CHECK_ORCA_VERSION
......
......@@ -13995,7 +13995,7 @@ int
main ()
{
return strncmp("3.40.", GPORCA_VERSION_STRING, 5);
return strncmp("3.41.", GPORCA_VERSION_STRING, 5);
;
return 0;
......@@ -14005,7 +14005,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 3.40.XXX" "$LINENO" 5
as_fn_error $? "Your ORCA version is expected to be 3.41.XXX" "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
......
[requires]
orca/v3.40.0@gpdb/stable
orca/v3.41.0@gpdb/stable
[imports]
include, * -> build/include
......
......@@ -88,9 +88,9 @@ sync_tools: opt_write_test
ifeq "$(findstring aix,$(BLD_ARCH))" ""
ifeq "$(findstring sles,$(BLD_ARCH))" ""
LD_LIBRARY_PATH='' wget --no-check-certificate -q -O - https://github.com/greenplum-db/gporca/archive/v3.40.0.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
LD_LIBRARY_PATH='' wget --no-check-certificate -q -O - https://github.com/greenplum-db/gporca/archive/v3.41.0.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
else
LD_LIBRARY_PATH='' wget --no-check-certificate -q -O - https://github.com/greenplum-db/gporca/releases/download/v3.40.0/bin_orca_centos5_release.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
LD_LIBRARY_PATH='' wget --no-check-certificate -q -O - https://github.com/greenplum-db/gporca/releases/download/v3.41.0/bin_orca_centos5_release.tar.gz | tar zxf - -C $(BLD_TOP)/ext/$(BLD_ARCH)
endif
endif
......
......@@ -3076,20 +3076,20 @@ ON (member_group.group_id IN (12,13,14,15) AND member_subgroup.subgroup_name = r
-> Redistribute Motion 3:3 (slice3; segments: 3)
Hash Key: member_subgroup.subgroup_name
-> Hash Join
Hash Cond: ((member."group_id" = member_group."group_id") AND (member_subgroup."group_id" = member_group."group_id"))
-> Redistribute Motion 3:3 (slice2; segments: 3)
Hash Key: member."group_id"
-> Hash Join
Hash Cond: (member."group_id" = member_subgroup."group_id")
-> Seq Scan on member
-> Hash
-> Broadcast Motion 3:3 (slice1; segments: 3)
-> Seq Scan on member_subgroup
Hash Cond: (member_group."group_id" = member."group_id")
-> Seq Scan on member_group
-> Hash
-> Seq Scan on member_group
-> Redistribute Motion 3:3 (slice2; segments: 3)
Hash Key: member_subgroup."group_id"
-> Hash Join
Hash Cond: (member."group_id" = member_subgroup."group_id")
-> Seq Scan on member
-> Hash
-> Broadcast Motion 3:3 (slice1; segments: 3)
-> Seq Scan on member_subgroup
-> Hash
-> Redistribute Motion 3:3 (slice4; segments: 3)
Hash Key: (region.county_name)::text
Hash Key: region.county_name
-> Seq Scan on region
Optimizer: Pivotal Optimizer (GPORCA) version 2.69.0
(23 rows)
......
......@@ -229,15 +229,15 @@ explain select c1 from t1,
QUERY PLAN
------------------------------------------------------------------------------------------
Hash Left Anti Semi (Not-In) Join (cost=0.00..1293.00 rows=1 width=4)
Hash Cond: t2.c2 = t3.c3
Hash Cond: (t2.c2 = t3.c3)
-> Gather Motion 3:1 (slice1; segments: 3) (cost=0.00..862.00 rows=1 width=8)
-> Hash Join (cost=0.00..862.00 rows=1 width=8)
Hash Cond: t1.c1 = t2.c2
-> Seq Scan on t1 (cost=0.00..431.00 rows=2 width=4)
Filter: c1 > 4
-> Hash (cost=431.00..431.00 rows=1 width=4)
-> Seq Scan on t2 (cost=0.00..431.00 rows=1 width=4)
Filter: c2 > 4
Hash Cond: (t2.c2 = t1.c1)
-> Seq Scan on t2 (cost=0.00..431.00 rows=1 width=4)
Filter: (c2 > 4)
-> Hash (cost=431.00..431.00 rows=2 width=4)
-> Seq Scan on t1 (cost=0.00..431.00 rows=2 width=4)
Filter: (c1 > 4)
-> Hash (cost=431.00..431.00 rows=1 width=4)
-> Gather Motion 3:1 (slice2; segments: 3) (cost=0.00..431.00 rows=3 width=4)
-> Seq Scan on t3 (cost=0.00..431.00 rows=1 width=4)
......
......@@ -132,40 +132,43 @@ WHERE t1.user_vie_project_code_pk = keo1.user_vie_project_code_pk;
-> Result
-> Hash Join
Hash Cond: ((keo1.user_vie_project_code_pk)::text = (keo1_1.user_vie_project_code_pk)::text)
-> Seq Scan on keo1
-> Redistribute Motion 3:3 (slice1; segments: 3)
Hash Key: keo1.user_vie_project_code_pk
-> Seq Scan on keo1
-> Hash
-> Broadcast Motion 3:3 (slice7; segments: 3)
-> Hash Join
Hash Cond: ((keo1_1.user_vie_project_code_pk)::text = (keo2.projects_pk)::text)
-> Redistribute Motion 1:3 (slice5; segments: 1)
-> Hash Join
Hash Cond: ((keo1_1.user_vie_fiscal_year_period_sk)::text = (max((keo3.sky_per)::text)))
-> Gather Motion 3:1 (slice1; segments: 3)
-> Seq Scan on keo1 keo1_1
-> Hash
-> Aggregate
-> Hash Join
Hash Cond: ((keo3.bky_per)::text = (keo4.keo_para_required_period)::text)
-> Gather Motion 3:1 (slice2; segments: 3)
-> Seq Scan on keo3
-> Hash
-> Assert
Assert Cond: ((row_number() OVER (?)) = 1)
-> WindowAgg
-> Hash Join
Hash Cond: ((keo4.keo_para_budget_date)::text = (min((min((keo4_1.keo_para_budget_date)::text)))))
-> Gather Motion 3:1 (slice3; segments: 3)
-> Seq Scan on keo4
-> Hash
-> Aggregate
-> Gather Motion 3:1 (slice4; segments: 3)
-> Aggregate
-> Seq Scan on keo4 keo4_1
-> Hash
-> Broadcast Motion 3:3 (slice6; segments: 3)
-> Seq Scan on keo2
Optimizer: Pivotal Optimizer (GPORCA) version 3.39.0
(40 rows)
-> Hash Join
Hash Cond: ((keo1_1.user_vie_project_code_pk)::text = (keo2.projects_pk)::text)
-> Redistribute Motion 1:3 (slice6; segments: 1)
Hash Key: keo1_1.user_vie_project_code_pk
-> Hash Join
Hash Cond: ((keo1_1.user_vie_fiscal_year_period_sk)::text = (max((keo3.sky_per)::text)))
-> Gather Motion 3:1 (slice2; segments: 3)
-> Seq Scan on keo1 keo1_1
-> Hash
-> Aggregate
-> Hash Join
Hash Cond: ((keo3.bky_per)::text = (keo4.keo_para_required_period)::text)
-> Gather Motion 3:1 (slice3; segments: 3)
-> Seq Scan on keo3
-> Hash
-> Assert
Assert Cond: ((row_number() OVER (?)) = 1)
-> WindowAgg
-> Hash Join
Hash Cond: ((keo4.keo_para_budget_date)::text = (min((min((keo4_1.keo_para_budget_date)::text)))))
-> Gather Motion 3:1 (slice4; segments: 3)
-> Seq Scan on keo4
-> Hash
-> Aggregate
-> Gather Motion 3:1 (slice5; segments: 3)
-> Aggregate
-> Seq Scan on keo4 keo4_1
-> Hash
-> Redistribute Motion 3:3 (slice7; segments: 3)
Hash Key: keo2.projects_pk
-> Seq Scan on keo2
Optimizer: Pivotal Optimizer (GPORCA) version 3.41.0
(43 rows)
UPDATE keo1 SET user_vie_act_cntr_marg_cum = 234.682 FROM
( SELECT a.user_vie_project_code_pk FROM keo1 a INNER JOIN keo2 b
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册