Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
340a8063
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,体验更适合开发者的 AI 搜索 >>
提交
340a8063
编写于
10月 09, 2019
作者:
S
Shreedhar Hardikar
提交者:
Shreedhar Hardikar
10月 09, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changes for ORCA commit: "Fallback when citext op non-citext join predicate is present"
Bumps ORCA version to 3.75.0 and ICG test.
上级
2391923c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
65 addition
and
6 deletion
+65
-6
concourse/tasks/compile_gpdb.yml
concourse/tasks/compile_gpdb.yml
+1
-1
config/orca.m4
config/orca.m4
+2
-2
configure
configure
+2
-2
depends/conanfile_orca.txt
depends/conanfile_orca.txt
+1
-1
src/test/regress/expected/gporca.out
src/test/regress/expected/gporca.out
+21
-0
src/test/regress/expected/gporca_optimizer.out
src/test/regress/expected/gporca_optimizer.out
+23
-0
src/test/regress/sql/gporca.sql
src/test/regress/sql/gporca.sql
+15
-0
未找到文件。
concourse/tasks/compile_gpdb.yml
浏览文件 @
340a8063
...
...
@@ -19,5 +19,5 @@ params:
BLD_TARGETS
:
OUTPUT_ARTIFACT_DIR
:
gpdb_artifacts
CONFIGURE_FLAGS
:
ORCA_TAG
:
v3.7
4
.0
ORCA_TAG
:
v3.7
5
.0
RC_BUILD_TYPE_GCS
:
config/orca.m4
浏览文件 @
340a8063
...
...
@@ -40,10 +40,10 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[
#include <string.h>
]],
[
return strncmp("3.7
4
.", GPORCA_VERSION_STRING, 5);
return strncmp("3.7
5
.", GPORCA_VERSION_STRING, 5);
])],
[AC_MSG_RESULT([[ok]])],
[AC_MSG_ERROR([Your ORCA version is expected to be 3.7
4
.XXX])]
[AC_MSG_ERROR([Your ORCA version is expected to be 3.7
5
.XXX])]
)
AC_LANG_POP([C++])
])# PGAC_CHECK_ORCA_VERSION
...
...
configure
浏览文件 @
340a8063
...
...
@@ -14129,7 +14129,7 @@ int
main ()
{
return strncmp("3.7
4
.", GPORCA_VERSION_STRING, 5);
return strncmp("3.7
5
.", GPORCA_VERSION_STRING, 5);
;
return 0;
...
...
@@ -14139,7 +14139,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.7
4
.XXX" "$LINENO" 5
as_fn_error $? "Your ORCA version is expected to be 3.7
5
.XXX" "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
...
...
depends/conanfile_orca.txt
浏览文件 @
340a8063
[requires]
orca/v3.7
4
.0@gpdb/stable
orca/v3.7
5
.0@gpdb/stable
[imports]
include, * -> build/include
...
...
src/test/regress/expected/gporca.out
浏览文件 @
340a8063
...
...
@@ -11449,3 +11449,24 @@ SELECT * from tc4 where a IS NULL;
|
(1 row)
-- citext fallback
CREATE EXTENSION IF NOT EXISTS citext;
drop table if exists tt, tc;
NOTICE: table "tt" does not exist, skipping
NOTICE: table "tc" does not exist, skipping
create table tc (a int, c citext) distributed by (a);
create table tt (b int, v varchar) distributed by (v);
insert into tc values (1, 'a'), (1, 'A');
insert into tt values (1, 'a'), (1, 'A');
insert into tc values (1, 'b'), (1, 'B');
insert into tt values (1, 'b'), (1, 'B');
-- expected fall back to the planner
select * from tc, tt where c = v;
a | c | b | v
---+---+---+---
1 | a | 1 | a
1 | A | 1 | A
1 | B | 1 | B
1 | b | 1 | b
(4 rows)
src/test/regress/expected/gporca_optimizer.out
浏览文件 @
340a8063
...
...
@@ -11595,3 +11595,26 @@ SELECT * from tc4 where a IS NULL;
|
(1 row)
-- citext fallback
CREATE EXTENSION IF NOT EXISTS citext;
drop table if exists tt, tc;
NOTICE: table "tt" does not exist, skipping
NOTICE: table "tc" does not exist, skipping
create table tc (a int, c citext) distributed by (a);
create table tt (b int, v varchar) distributed by (v);
insert into tc values (1, 'a'), (1, 'A');
insert into tt values (1, 'a'), (1, 'A');
insert into tc values (1, 'b'), (1, 'B');
insert into tt values (1, 'b'), (1, 'B');
-- expected fall back to the planner
select * from tc, tt where c = v;
INFO: GPORCA failed to produce a plan, falling back to planner
DETAIL: Operator Citext comparison in join. not supported
a | c | b | v
---+---+---+---
1 | a | 1 | a
1 | A | 1 | A
1 | B | 1 | B
1 | b | 1 | b
(4 rows)
src/test/regress/sql/gporca.sql
浏览文件 @
340a8063
...
...
@@ -2221,6 +2221,21 @@ CREATE TABLE tc4 (a int, b int, check(a + b > 1 and a = b));
INSERT
INTO
tc4
VALUES
(
NULL
,
NULL
);
SELECT
*
from
tc4
where
a
IS
NULL
;
-- citext fallback
CREATE
EXTENSION
IF
NOT
EXISTS
citext
;
drop
table
if
exists
tt
,
tc
;
create
table
tc
(
a
int
,
c
citext
)
distributed
by
(
a
);
create
table
tt
(
b
int
,
v
varchar
)
distributed
by
(
v
);
insert
into
tc
values
(
1
,
'a'
),
(
1
,
'A'
);
insert
into
tt
values
(
1
,
'a'
),
(
1
,
'A'
);
insert
into
tc
values
(
1
,
'b'
),
(
1
,
'B'
);
insert
into
tt
values
(
1
,
'b'
),
(
1
,
'B'
);
-- expected fall back to the planner
select
*
from
tc
,
tt
where
c
=
v
;
-- start_ignore
DROP
SCHEMA
orca
CASCADE
;
-- end_ignore
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录