From efc59daa94fb47e0bbd82afa90454238779b43f1 Mon Sep 17 00:00:00 2001 From: Abbas Butt Date: Fri, 15 Dec 2017 17:36:11 +0500 Subject: [PATCH] RM # 41812 : Correct expected output file for PG --- expected/datatype.out | 80 +++++++++++++++++++++---------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/expected/datatype.out b/expected/datatype.out index 4795177..a835009 100644 --- a/expected/datatype.out +++ b/expected/datatype.out @@ -2126,20 +2126,20 @@ SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'emp_dt_mp1'); SELECT * FROM emp_fr16 ORDER BY empno; empno | ename | job | mgr | hiredate | sal | comm | deptno -------+--------+-----------+------+------------+------+---------+-------- - 7369 | SMITH | CLERK | 7902 | 17/12/1980 | 800 | 0 | 20 - 7499 | ALLEN | SALESMAN | 7698 | 20/02/1981 | 1600 | 300.1 | 30 - 7521 | WARD | SALESMAN | 7698 | 22/02/1981 | 1250 | 500 | 30 - 7566 | JONES | MANAGER | 7839 | 02/04/1981 | 2975 | 0 | 20 + 7369 | SMITH | CLERK | 7902 | 17/12/1980 | 800 | 0.00 | 20 + 7499 | ALLEN | SALESMAN | 7698 | 20/02/1981 | 1600 | 300.10 | 30 + 7521 | WARD | SALESMAN | 7698 | 22/02/1981 | 1250 | 500.00 | 30 + 7566 | JONES | MANAGER | 7839 | 02/04/1981 | 2975 | 0.00 | 20 7654 | MARTIN | SALESMAN | 7698 | 28/09/1981 | 1250 | 1400.34 | 30 - 7698 | BLAKE | MANAGER | 7839 | 01/05/1981 | 2850 | 0 | 30 - 7782 | CLARK | MANAGER | 7839 | 09/06/1981 | 2450 | 0 | 10 - 7788 | SCOTT | ANALYST | 7566 | 19/04/1987 | 3000 | 0 | 20 - 7839 | KING | PRESIDENT | | 17/11/1981 | 5000 | 0 | 10 - 7844 | TURNER | SALESMAN | 7698 | 08/09/1980 | 1500 | 0 | 30 - 7876 | ADAMS | CLERK | 7788 | 23/05/1987 | 1100 | 0 | 20 - 7900 | JAMES | CLERK | 7698 | 03/12/1981 | 950 | 0 | 30 - 7902 | FORD | ANALYST | 7566 | 03/12/1981 | 3000 | 0 | 20 - 7934 | MILLER | CLERK | 7782 | 23/01/1982 | 1300 | 0 | 10 + 7698 | BLAKE | MANAGER | 7839 | 01/05/1981 | 2850 | 0.00 | 30 + 7782 | CLARK | MANAGER | 7839 | 09/06/1981 | 2450 | 0.00 | 10 + 7788 | SCOTT | ANALYST | 7566 | 19/04/1987 | 3000 | 0.00 | 20 + 7839 | KING | PRESIDENT | | 17/11/1981 | 5000 | 0.00 | 10 + 7844 | TURNER | SALESMAN | 7698 | 08/09/1980 | 1500 | 0.00 | 30 + 7876 | ADAMS | CLERK | 7788 | 23/05/1987 | 1100 | 0.00 | 20 + 7900 | JAMES | CLERK | 7698 | 03/12/1981 | 950 | 0.00 | 30 + 7902 | FORD | ANALYST | 7566 | 03/12/1981 | 3000 | 0.00 | 20 + 7934 | MILLER | CLERK | 7782 | 23/01/1982 | 1300 | 0.00 | 10 (14 rows) DROP FOREIGN TABLE emp_fr16; @@ -2158,20 +2158,20 @@ SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'emp_dt_mp1'); SELECT * FROM emp_fr17 ORDER BY empno; empno | ename | job | mgr | hiredate | sal | comm | deptno -------+--------+-----------+------+------------+--------+---------+-------- - 7369 | SMITH | CLERK | 7902 | 17/12/1980 | 800.0 | 0 | 20 - 7499 | ALLEN | SALESMAN | 7698 | 20/02/1981 | 1600.0 | 300.1 | 30 - 7521 | WARD | SALESMAN | 7698 | 22/02/1981 | 1250.0 | 500 | 30 - 7566 | JONES | MANAGER | 7839 | 02/04/1981 | 2975.0 | 0 | 20 + 7369 | SMITH | CLERK | 7902 | 17/12/1980 | 800.0 | 0.00 | 20 + 7499 | ALLEN | SALESMAN | 7698 | 20/02/1981 | 1600.0 | 300.10 | 30 + 7521 | WARD | SALESMAN | 7698 | 22/02/1981 | 1250.0 | 500.00 | 30 + 7566 | JONES | MANAGER | 7839 | 02/04/1981 | 2975.0 | 0.00 | 20 7654 | MARTIN | SALESMAN | 7698 | 28/09/1981 | 1250.0 | 1400.34 | 30 - 7698 | BLAKE | MANAGER | 7839 | 01/05/1981 | 2850.0 | 0 | 30 - 7782 | CLARK | MANAGER | 7839 | 09/06/1981 | 2450.0 | 0 | 10 - 7788 | SCOTT | ANALYST | 7566 | 19/04/1987 | 3000.0 | 0 | 20 - 7839 | KING | PRESIDENT | | 17/11/1981 | 5000.0 | 0 | 10 - 7844 | TURNER | SALESMAN | 7698 | 08/09/1980 | 1500.0 | 0 | 30 - 7876 | ADAMS | CLERK | 7788 | 23/05/1987 | 1100.0 | 0 | 20 - 7900 | JAMES | CLERK | 7698 | 03/12/1981 | 950.0 | 0 | 30 - 7902 | FORD | ANALYST | 7566 | 03/12/1981 | 3000.0 | 0 | 20 - 7934 | MILLER | CLERK | 7782 | 23/01/1982 | 1300.0 | 0 | 10 + 7698 | BLAKE | MANAGER | 7839 | 01/05/1981 | 2850.0 | 0.00 | 30 + 7782 | CLARK | MANAGER | 7839 | 09/06/1981 | 2450.0 | 0.00 | 10 + 7788 | SCOTT | ANALYST | 7566 | 19/04/1987 | 3000.0 | 0.00 | 20 + 7839 | KING | PRESIDENT | | 17/11/1981 | 5000.0 | 0.00 | 10 + 7844 | TURNER | SALESMAN | 7698 | 08/09/1980 | 1500.0 | 0.00 | 30 + 7876 | ADAMS | CLERK | 7788 | 23/05/1987 | 1100.0 | 0.00 | 20 + 7900 | JAMES | CLERK | 7698 | 03/12/1981 | 950.0 | 0.00 | 30 + 7902 | FORD | ANALYST | 7566 | 03/12/1981 | 3000.0 | 0.00 | 20 + 7934 | MILLER | CLERK | 7782 | 23/01/1982 | 1300.0 | 0.00 | 10 (14 rows) DROP FOREIGN TABLE emp_fr17; @@ -2190,20 +2190,20 @@ SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'emp_dt_mp1'); SELECT * FROM emp_fr18 ORDER BY empno; empno | ename | job | mgr | hiredate | sal | comm | deptno -------+--------+-----------+------+------------+--------+---------+-------- - 7369 | SMITH | CLERK | 7902 | 17/12/1980 | 800.0 | 0 | 20 - 7499 | ALLEN | SALESMAN | 7698 | 20/02/1981 | 1600.0 | 300.1 | 30 - 7521 | WARD | SALESMAN | 7698 | 22/02/1981 | 1250.0 | 500 | 30 - 7566 | JONES | MANAGER | 7839 | 02/04/1981 | 2975.0 | 0 | 20 + 7369 | SMITH | CLERK | 7902 | 17/12/1980 | 800.0 | 0.00 | 20 + 7499 | ALLEN | SALESMAN | 7698 | 20/02/1981 | 1600.0 | 300.10 | 30 + 7521 | WARD | SALESMAN | 7698 | 22/02/1981 | 1250.0 | 500.00 | 30 + 7566 | JONES | MANAGER | 7839 | 02/04/1981 | 2975.0 | 0.00 | 20 7654 | MARTIN | SALESMAN | 7698 | 28/09/1981 | 1250.0 | 1400.34 | 30 - 7698 | BLAKE | MANAGER | 7839 | 01/05/1981 | 2850.0 | 0 | 30 - 7782 | CLARK | MANAGER | 7839 | 09/06/1981 | 2450.0 | 0 | 10 - 7788 | SCOTT | ANALYST | 7566 | 19/04/1987 | 3000.0 | 0 | 20 - 7839 | KING | PRESIDENT | | 17/11/1981 | 5000.0 | 0 | 10 - 7844 | TURNER | SALESMAN | 7698 | 08/09/1980 | 1500.0 | 0 | 30 - 7876 | ADAMS | CLERK | 7788 | 23/05/1987 | 1100.0 | 0 | 20 - 7900 | JAMES | CLERK | 7698 | 03/12/1981 | 950.0 | 0 | 30 - 7902 | FORD | ANALYST | 7566 | 03/12/1981 | 3000.0 | 0 | 20 - 7934 | MILLER | CLERK | 7782 | 23/01/1982 | 1300.0 | 0 | 10 + 7698 | BLAKE | MANAGER | 7839 | 01/05/1981 | 2850.0 | 0.00 | 30 + 7782 | CLARK | MANAGER | 7839 | 09/06/1981 | 2450.0 | 0.00 | 10 + 7788 | SCOTT | ANALYST | 7566 | 19/04/1987 | 3000.0 | 0.00 | 20 + 7839 | KING | PRESIDENT | | 17/11/1981 | 5000.0 | 0.00 | 10 + 7844 | TURNER | SALESMAN | 7698 | 08/09/1980 | 1500.0 | 0.00 | 30 + 7876 | ADAMS | CLERK | 7788 | 23/05/1987 | 1100.0 | 0.00 | 20 + 7900 | JAMES | CLERK | 7698 | 03/12/1981 | 950.0 | 0.00 | 30 + 7902 | FORD | ANALYST | 7566 | 03/12/1981 | 3000.0 | 0.00 | 20 + 7934 | MILLER | CLERK | 7782 | 23/01/1982 | 1300.0 | 0.00 | 10 (14 rows) DROP FOREIGN TABLE emp_fr18; @@ -2537,7 +2537,7 @@ CREATE FOREIGN TABLE emp_dt_bg1 ( ) SERVER hdfs_server OPTIONS (dbname 'fdw_db', table_name 'emp_dt_mp1'); SELECT * FROM emp_dt_bg1 ORDER BY empno; -ERROR: invalid input syntax for integer: "300.1" +ERROR: invalid input syntax for integer: "0.00" DROP FOREIGN TABLE emp_dt_bg1; --=================================================================================== -- PG Supported Datatypes