Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
d8b78234
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,发现更多精彩内容 >>
提交
d8b78234
编写于
2月 22, 2016
作者:
A
Abhijit Subramanya
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update gpcopy error log tests so that they are not dependent on the number of
segments configured in the cluster.
上级
33a1278c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
42 addition
and
42 deletion
+42
-42
src/test/regress/expected/gpcopy.out
src/test/regress/expected/gpcopy.out
+38
-38
src/test/regress/sql/gpcopy.sql
src/test/regress/sql/gpcopy.sql
+4
-4
未找到文件。
src/test/regress/expected/gpcopy.out
浏览文件 @
d8b78234
...
...
@@ -557,27 +557,27 @@ SELECT * FROM errcopy;
5 | 5 |
(1 row)
SELECT relname,
linenum, errmsg, rawdata FROM gp_read_error_log('errcopy') ORDER BY linenum
;
relname |
linenum |
errmsg | rawdata
---------+---------
+---------
----------------------------------------------+---------------
errcopy |
1 |
invalid input syntax for integer: "1_text", column c | 1,1,1_text
:
errcopy |
2 |
invalid input syntax for integer: "3_text", column c | 3,3,3_text
:
errcopy |
3 | invalid input syntax for integer: "8_text", column c | 8,8,8
_text
:
errcopy |
4 | invalid input syntax for integer: "2_text", column c | 2,2,2
_text
:
errcopy |
5 | invalid input syntax for integer: "4_text", column c | 4,4,4
_text
:
errcopy |
6 | invalid input syntax for integer: "9_text", column c | 9,9,9
_text
:
errcopy |
8 | invalid input syntax for integer: "10_text", column c | 10,10,10_text
:
errcopy |
9 | invalid input syntax for integer: "6_text", column c | 6,6,6
_text
:
errcopy |
10 | invalid input syntax for integer: "7_text", column c | 7,7,7_text
:
SELECT relname,
errmsg, rawdata FROM gp_read_error_log('errcopy')
;
relname | errmsg | rawdata
---------+-------------------------------------------------------+---------------
errcopy | invalid input syntax for integer: "1_text", column c | 1,1,1_text
:
errcopy | invalid input syntax for integer: "3_text", column c | 3,3,3_text
:
errcopy |
invalid input syntax for integer: "7_text", column c | 7,7,7
_text
:
errcopy |
invalid input syntax for integer: "9_text", column c | 9,9,9
_text
:
errcopy |
invalid input syntax for integer: "2_text", column c | 2,2,2
_text
:
errcopy |
invalid input syntax for integer: "4_text", column c | 4,4,4
_text
:
errcopy |
invalid input syntax for integer: "6_text", column c | 6,6,6_text
:
errcopy |
invalid input syntax for integer: "8_text", column c | 8,8,8
_text
:
errcopy |
invalid input syntax for integer: "10_text", column c | 10,10,10_text
:
(9 rows)
-- reject one row with extra column, one row with fewer columns
...
...
@@ -604,13 +604,13 @@ SELECT * FROM errcopy ORDER BY a;
10 | 10 | 10
(8 rows)
SELECT relname,
linenum, errmsg, rawdata FROM gp_read_error_log('errcopy') ORDER BY linenum
;
relname |
linenum |
errmsg | rawdata
---------+---------
+---------
------------------------------+---------
errcopy |
4 |
missing data for column "c" | 4,4
:
errcopy |
5 |
extra data after last expected column | 5,5,5,5
:
SELECT relname,
errmsg, rawdata FROM gp_read_error_log('errcopy')
;
relname | errmsg | rawdata
---------+---------------------------------------+---------
errcopy | missing data for column "c" | 4,4
:
errcopy | extra data after last expected column | 5,5,5,5
:
(2 rows)
-- metacharacter
...
...
@@ -644,11 +644,11 @@ SELECT * FROM errcopy;
---+---+---
(0 rows)
SELECT relname, filename,
linenum, bytenum, errmsg FROM gp_read_error_log('errcopy') ORDER BY linenum
;
relname | filename |
linenum |
bytenum | errmsg
---------+----------+---------+---------
+---------
--------------------
errcopy | <stdin> |
1 |
| missing data for column "b"
errcopy | <stdin> |
2 |
| missing data for column "b"
SELECT relname, filename,
bytenum, errmsg FROM gp_read_error_log('errcopy')
;
relname | filename | bytenum | errmsg
---------+----------+---------+-----------------------------
errcopy | <stdin> | | missing data for column "b"
errcopy | <stdin> | | missing data for column "b"
(2 rows)
-- abort and keep
...
...
@@ -662,11 +662,11 @@ SELECT gp_truncate_error_log('errcopy');
COPY errcopy from stdin delimiter '/' log errors segment reject limit 3 rows;
ERROR: Segment reject limit reached. Aborting operation. Last error was: missing data for column "b" (seg0 subraa4-mac:40000 pid=87505)
CONTEXT: COPY errcopy, line 5: "1"
SELECT relname, filename,
linenum,
bytenum, errmsg FROM gp_read_error_log('errcopy');
relname | filename |
linenum |
bytenum | errmsg
---------+----------+---------+---------
+---------
------------------------------
errcopy | <stdin> |
2 |
| missing data for column "c"
errcopy | <stdin> |
4 |
| extra data after last expected column
SELECT relname, filename, bytenum, errmsg FROM gp_read_error_log('errcopy');
relname | filename | bytenum | errmsg
---------+----------+---------+---------------------------------------
errcopy | <stdin> | | missing data for column "c"
errcopy | <stdin> | | extra data after last expected column
(2 rows)
-- gp_initial_bad_row_limit guc test. This guc allows user to set the initial
...
...
src/test/regress/sql/gpcopy.sql
浏览文件 @
d8b78234
...
...
@@ -602,7 +602,7 @@ ALTER table errcopy ADD COLUMN c int;
COPY
errcopy
from
'/tmp/errcopy.csv'
csv
null
''
log
errors
segment
reject
limit
10
rows
;
SELECT
*
FROM
errcopy
;
SELECT
relname
,
linenum
,
errmsg
,
rawdata
FROM
gp_read_error_log
(
'errcopy'
)
ORDER
BY
linenum
;
SELECT
relname
,
errmsg
,
rawdata
FROM
gp_read_error_log
(
'errcopy'
)
;
-- reject one row with extra column, one row with fewer columns
TRUNCATE
errcopy
;
...
...
@@ -612,7 +612,7 @@ COPY (select i::text || ',' || i::text || case when i = 4 then '' else ',' || i:
COPY
errcopy
from
'/tmp/errcopy.csv'
csv
null
''
log
errors
segment
reject
limit
10
rows
;
SELECT
*
FROM
errcopy
ORDER
BY
a
;
SELECT
relname
,
linenum
,
errmsg
,
rawdata
FROM
gp_read_error_log
(
'errcopy'
)
ORDER
BY
linenum
;
SELECT
relname
,
errmsg
,
rawdata
FROM
gp_read_error_log
(
'errcopy'
)
;
-- metacharacter
TRUNCATE
errcopy
;
...
...
@@ -638,7 +638,7 @@ COPY errcopy from stdin delimiter '\t' log errors segment reject limit 3 rows;
1
30
999
\
.
SELECT
*
FROM
errcopy
;
SELECT
relname
,
filename
,
linenum
,
bytenum
,
errmsg
FROM
gp_read_error_log
(
'errcopy'
)
ORDER
BY
linenum
;
SELECT
relname
,
filename
,
bytenum
,
errmsg
FROM
gp_read_error_log
(
'errcopy'
)
;
-- abort and keep
TRUNCATE
errcopy
;
...
...
@@ -652,7 +652,7 @@ COPY errcopy from stdin delimiter '/' log errors segment reject limit 3 rows;
1
1
/
17
/
18
\
.
SELECT
relname
,
filename
,
linenum
,
bytenum
,
errmsg
FROM
gp_read_error_log
(
'errcopy'
);
SELECT
relname
,
filename
,
bytenum
,
errmsg
FROM
gp_read_error_log
(
'errcopy'
);
-- gp_initial_bad_row_limit guc test. This guc allows user to set the initial
-- number of rows which can contain errors before the database stops loading
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录