Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
b705a37b
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b705a37b
编写于
7月 10, 2017
作者:
V
Venkatesh Raghavan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update GPORCA version
上级
b3d6b0db
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
45 addition
and
39 deletion
+45
-39
config/orca.m4
config/orca.m4
+2
-2
configure
configure
+2
-2
gpAux/releng/releng.mk
gpAux/releng/releng.mk
+1
-1
src/test/regress/expected/notin_optimizer.out
src/test/regress/expected/notin_optimizer.out
+12
-10
src/test/regress/expected/subselect_gp_optimizer.out
src/test/regress/expected/subselect_gp_optimizer.out
+28
-24
未找到文件。
config/orca.m4
浏览文件 @
b705a37b
...
...
@@ -53,10 +53,10 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <string.h>
]],
[
return strncmp("2.3
5
.", GPORCA_VERSION_STRING, 5);
return strncmp("2.3
6
.", GPORCA_VERSION_STRING, 5);
])],
[AC_MSG_RESULT([[ok]])],
[AC_MSG_ERROR([Your ORCA version is expected to be 2.3
5
.XXX])]
[AC_MSG_ERROR([Your ORCA version is expected to be 2.3
6
.XXX])]
)
AC_LANG_POP([C++])
])# PGAC_CHECK_ORCA_VERSION
...
...
configure
浏览文件 @
b705a37b
...
...
@@ -12427,7 +12427,7 @@ int
main ()
{
return strncmp("2.3
5
.", GPORCA_VERSION_STRING, 5);
return strncmp("2.3
6
.", GPORCA_VERSION_STRING, 5);
;
return 0;
...
...
@@ -12437,7 +12437,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.3
5
.XXX" "$LINENO" 5
as_fn_error $? "Your ORCA version is expected to be 2.3
6
.XXX" "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
...
...
gpAux/releng/releng.mk
浏览文件 @
b705a37b
...
...
@@ -120,7 +120,7 @@ sync_tools: opt_write_test /opt/releng/apache-ant
-Divyrepo
.user
=
$(IVYREPO_USER)
-Divyrepo
.passwd
=
"
$(IVYREPO_PASSWD)
"
resolve
)
;
@echo
"Resolve finished"
;
LD_LIBRARY_PATH
=
''
wget
-O
- https://github.com/greenplum-db/gporca/releases/download/v2.3
5.1
/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.3
6.0
/bin_orca_centos5_release.tar.gz |
tar
zxf -
-C
$(BLD_TOP)
/ext/
$(BLD_ARCH)
clean_tools
:
opt_write_test
@
cd
releng/make/dependencies
;
\
...
...
src/test/regress/expected/notin_optimizer.out
浏览文件 @
b705a37b
...
...
@@ -1105,8 +1105,8 @@ select c1 from t1 where not exists (select c2 from t2 where c2 not in (select c3
--
explain select c1 from t1 where not exists (select c2 from t2 where exists (select c3 from t3) and c2 <>all (select c3 from t3) and c2 = c1);
QUERY PLAN
---------------------------------------------------------------------------------------------------------------------
Gather Motion 3:1 (slice
3
; segments: 3) (cost=0.00..1324894.16 rows=4 width=4)
---------------------------------------------------------------------------------------------------------------------
---------
Gather Motion 3:1 (slice
4
; segments: 3) (cost=0.00..1324894.16 rows=4 width=4)
-> Hash Left Anti Semi Join (cost=0.00..1324894.16 rows=2 width=4)
Hash Cond: t1.c1 = t2.c2
-> Table Scan on t1 (cost=0.00..431.00 rows=4 width=4)
...
...
@@ -1116,15 +1116,17 @@ explain select c1 from t1 where not exists (select c2 from t2 where exists (sele
-> Nested Loop EXISTS Join (cost=0.00..1324032.16 rows=2 width=4)
Join Filter: true
-> Table Scan on t2 (cost=0.00..431.00 rows=2 width=4)
-> Materialize (cost=0.00..431.00 rows=3 width=1)
-> Broadcast Motion 3:3 (slice1; segments: 3) (cost=0.00..431.00 rows=3 width=1)
-> Materialize (cost=0.00..431.00 rows=1 width=1)
-> Broadcast Motion 1:3 (slice2) (cost=0.00..431.00 rows=3 width=1)
-> Limit (cost=0.00..431.00 rows=1 width=1)
-> Gather Motion 3:1 (slice1; segments: 3) (cost=0.00..431.00 rows=1 width=1)
-> Limit (cost=0.00..431.00 rows=1 width=1)
-> Table Scan on t3 (cost=0.00..431.00 rows=1 width=1)
-> Hash (cost=431.00..431.00 rows=3 width=4)
-> Broadcast Motion 3:3 (slice
2
; segments: 3) (cost=0.00..431.00 rows=3 width=4)
-> Broadcast Motion 3:3 (slice
3
; segments: 3) (cost=0.00..431.00 rows=3 width=4)
-> Table Scan on t3 (cost=0.00..431.00 rows=1 width=4)
Settings: optimizer=on
Optimizer status: PQO version 2.34.0
(18 rows)
Optimizer status: PQO version 2.35.1
(20 rows)
select c1 from t1 where not exists (select c2 from t2 where exists (select c3 from t3) and c2 <>all (select c3 from t3) and c2 = c1);
c1
...
...
src/test/regress/expected/subselect_gp_optimizer.out
浏览文件 @
b705a37b
...
...
@@ -135,18 +135,20 @@ create table mrs_t1(x int) distributed by (x);
insert into mrs_t1 select generate_series(1,20);
explain select * from mrs_t1 where exists (select x from mrs_t1 where x < -1);
QUERY PLAN
---------------------------------------------------------------------------------------------------
Gather Motion
2:1 (slice2; segments: 2
) (cost=0.00..1293.00 rows=20 width=4)
-> Nested Loop EXISTS Join (cost=0.00..1293.00 rows=
10
width=4)
---------------------------------------------------------------------------------------------------
---------
Gather Motion
3:1 (slice3; segments: 3
) (cost=0.00..1293.00 rows=20 width=4)
-> Nested Loop EXISTS Join (cost=0.00..1293.00 rows=
7
width=4)
Join Filter: true
-> Table Scan on mrs_t1 (cost=0.00..431.00 rows=10 width=4)
-> Materialize (cost=0.00..431.00 rows=2 width=1)
-> Broadcast Motion 2:2 (slice1; segments: 2) (cost=0.00..431.00 rows=2 width=1)
-> Table Scan on mrs_t1 (cost=0.00..431.00 rows=7 width=4)
-> Materialize (cost=0.00..431.00 rows=1 width=1)
-> Broadcast Motion 1:3 (slice2) (cost=0.00..431.00 rows=3 width=1)
-> Limit (cost=0.00..431.00 rows=1 width=1)
-> Gather Motion 3:1 (slice1; segments: 3) (cost=0.00..431.00 rows=1 width=1)
-> Table Scan on mrs_t1 (cost=0.00..431.00 rows=1 width=1)
Filter: x < (-1)
Settings: optimizer
=on
; optimizer_segments=3
Optimizer status: PQO version
1.62
1
(1
0
rows)
Settings: optimizer
_nestloop_factor=1
; optimizer_segments=3
Optimizer status: PQO version
2.35.
1
(1
2
rows)
select * from mrs_t1 where exists (select x from mrs_t1 where x < -1) order by 1;
x
...
...
@@ -155,18 +157,20 @@ select * from mrs_t1 where exists (select x from mrs_t1 where x < -1) order by 1
explain select * from mrs_t1 where exists (select x from mrs_t1 where x = 1);
QUERY PLAN
---------------------------------------------------------------------------------------------------
Gather Motion
2:1 (slice2; segments: 2
) (cost=0.00..1293.00 rows=20 width=4)
-> Nested Loop EXISTS Join (cost=0.00..1293.00 rows=
10
width=4)
---------------------------------------------------------------------------------------------------
---------
Gather Motion
3:1 (slice3; segments: 3
) (cost=0.00..1293.00 rows=20 width=4)
-> Nested Loop EXISTS Join (cost=0.00..1293.00 rows=
7
width=4)
Join Filter: true
-> Table Scan on mrs_t1 (cost=0.00..431.00 rows=10 width=4)
-> Materialize (cost=0.00..431.00 rows=2 width=1)
-> Broadcast Motion 2:2 (slice1; segments: 2) (cost=0.00..431.00 rows=2 width=1)
-> Table Scan on mrs_t1 (cost=0.00..431.00 rows=7 width=4)
-> Materialize (cost=0.00..431.00 rows=1 width=1)
-> Broadcast Motion 1:3 (slice2) (cost=0.00..431.00 rows=3 width=1)
-> Limit (cost=0.00..431.00 rows=1 width=1)
-> Gather Motion 3:1 (slice1; segments: 3) (cost=0.00..431.00 rows=2 width=1)
-> Table Scan on mrs_t1 (cost=0.00..431.00 rows=1 width=1)
Filter: x = 1
Settings: optimizer
=on
; optimizer_segments=3
Optimizer status: PQO version
1.62
1
(1
0
rows)
Settings: optimizer
_nestloop_factor=1
; optimizer_segments=3
Optimizer status: PQO version
2.35.
1
(1
2
rows)
select * from mrs_t1 where exists (select x from mrs_t1 where x = 1) order by 1;
x
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录