提交 6fed381d 编写于 作者: G Goutam Tadi 提交者: Goutam Tadi

Ignore differences between Ubuntu and Centos in gpcopy tests

Signed-off-by: NC.J. Jameson <cjameson@pivotal.io>
上级 fef49c51
--
-- 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;
--
-- 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.
先完成此消息的编辑!
想要评论请 注册