Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
6fed381d
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 搜索 >>
提交
6fed381d
编写于
10月 03, 2017
作者:
G
Goutam Tadi
提交者:
Goutam Tadi
10月 11, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Ignore differences between Ubuntu and Centos in gpcopy tests
Signed-off-by:
N
C.J. Jameson
<
cjameson@pivotal.io
>
上级
fef49c51
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
54 addition
and
8 deletion
+54
-8
src/test/regress/input/gpcopy.source
src/test/regress/input/gpcopy.source
+27
-5
src/test/regress/output/gpcopy.source
src/test/regress/output/gpcopy.source
+27
-3
未找到文件。
src/test/regress/input/gpcopy.source
浏览文件 @
6fed381d
--
-- This test suite tests COPY code that is unique to greenplum db.
-- This test suite tests COPY code that is unique to greenplum db.
--
-- start_matchignore
--
-- # in assertions that errors are correctly thrown if the user tries to
-- # COPY FROM a program with bad arguments, ignore extra information that
-- # Debian (vs RedHat) emits on stderr
--
-- m/DETAIL:.*sh.*Illegal number.*/i
--
-- end_matchignore
--
-- start_matchsubs
--
-- # in assertions that errors are correctly thrown if the user tries to
-- # COPY FROM a non-existent program, ignore slight differences in how
-- # Debian vs RedHat emits the message to the user
--
-- m/(ERROR\:\s+.*)?sh\:.*ttt.*not found/i
-- s/sh: 1: /sh: /
--
-- m/(ERROR\:\s+.*)?sh\:.*ttt.*not found/i
-- s/ ttt:.*not found/ ttt: NOT FOUND/
--
-- end_matchsubs
--
-- ######################################################
-- different distribution columns and distribution types
-- ######################################################
CREATE TABLE copy_regression_hash1(a text, b text, c text) distributed by (b);
CREATE TABLE copy_regression_hash2(a text, b text, c text) distributed by (a,c);
CREATE TABLE copy_regression_hash3(a varchar, b int, c int, d text) distributed by (a,c,d);
...
...
@@ -1074,6 +1096,6 @@ SELECT COUNT(*) FROM COPY_FROM_PROGRAM_ERROR;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM 'echo $GP_SEGMENT_I';
SELECT COUNT(*) FROM COPY_FROM_PROGRAM_ERROR;
SET gp_enable_segment_copy_checking=off;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
'echo -e "$GP_SEGMENT_ID\n<SEGID>"'
on segment;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
'echo -e "$GP_SEGMENT_I\n<SEGID>"'
on segment;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
$quote$bash -c "echo -e '$GP_SEGMENT_ID\n<SEGID>'"$quote$
on segment;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
$quote$bash -c "echo -e '$GP_SEGMENT_I\n<SEGID>'"$quote$
on segment;
SET gp_enable_segment_copy_checking=on;
src/test/regress/output/gpcopy.source
浏览文件 @
6fed381d
--
-- This test suite tests COPY code that is unique to greenplum db.
-- This test suite tests COPY code that is unique to greenplum db.
--
-- start_matchignore
--
-- # in assertions that errors are correctly thrown if the user tries to
-- # COPY FROM a program with bad arguments, ignore extra information that
-- # Debian (vs RedHat) emits on stderr
--
-- m/DETAIL:.*sh.*Illegal number.*/i
--
-- end_matchignore
--
-- start_matchsubs
--
-- # in assertions that errors are correctly thrown if the user tries to
-- # COPY FROM a non-existent program, ignore slight differences in how
-- # Debian vs RedHat emits the message to the user
--
-- m/(ERROR\:\s+.*)?sh\:.*ttt.*not found/i
-- s/sh: 1: /sh: /
--
-- m/(ERROR\:\s+.*)?sh\:.*ttt.*not found/i
-- s/ ttt:.*not found/ ttt: NOT FOUND/
--
-- end_matchsubs
--
-- ######################################################
-- different distribution columns and distribution types
...
...
@@ -1269,8 +1293,8 @@ SELECT COUNT(*) FROM COPY_FROM_PROGRAM_ERROR;
(1 row)
SET gp_enable_segment_copy_checking=off;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
'echo -e "$GP_SEGMENT_ID\n<SEGID>"'
on segment;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
'echo -e "$GP_SEGMENT_I\n<SEGID>"'
on segment;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
$quote$bash -c "echo -e '$GP_SEGMENT_ID\n<SEGID>'"$quote$
on segment;
COPY COPY_FROM_PROGRAM_ERROR FROM PROGRAM
$quote$bash -c "echo -e '$GP_SEGMENT_I\n<SEGID>'"$quote$
on segment;
ERROR: invalid input syntax for integer: "" (seg0 172.17.0.2:40000 pid=27935)
CONTEXT: COPY copy_from_program_error, line 1, column
SET gp_enable_segment_copy_checking=on;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录