提交 b8f73ef2 编写于 作者: A Ashwin Agrawal and Amil Khanzada 提交者: Ashwin Agrawal

Set timezone to PST and updated .sql/.ans files

These .sql files assumed that the timezone for machines running the
TINC tests would have the timezone as PST/PDT. This commit explicitly
sets the timezone to PST in the .sql files and updates the .ans files
to handle this new behavior.

This was done so that the below TINC tests could run on Concourse
containers which use UTC time zone:
-cs-storage
-cs-uao
上级 e1fd6072
set time zone PST8PDT;
SET
-- Table with rle_type different levels + delta columns
-- start_ignore
Drop table if exists delta_all;
......
set time zone PST8PDT;
SET
-- Alter a delta column to a non-supported column
-- Alter one delta column to another delta column
-- start_ignore
......
set time zone PST8PDT;
SET
-- Table with rle+ delta - create table, create bitmap index + insert data, select with index scan
-- start_ignore
Drop table if exists delta_bitmap_ins;
......
set time zone PST8PDT;
SET
-- Table with rle+ delta - create table, create btree index + insert data, select with index scan
-- start_ignore
Drop table if exists delta_btree_ins;
......
set time zone PST8PDT;
SET
-- Table with rle+ delta - create table, insert data, create bitmap index, select with index scan
-- start_ignore
Drop table if exists delta_ins_bitmap;
......
set time zone PST8PDT;
SET
-- Table with rle+ delta - create table, insert data, create btree index, select with index scan
-- start_ignore
Drop table if exists delta_ins_btree;
......
set time zone PST8PDT;
SET
-- Many blocks with delta compression
-- start_ignore
Drop table if exists delta_blocks;
......
set time zone PST8PDT;
SET
-- Table with delta on one column zlib,quicklz,none on other columns
-- start_ignore
Drop table if exists delta_mix;
......
set time zone PST8PDT;
SET
-- Table with delta + none compression on some columns
-- start_ignore
Drop table if exists delta_none;
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 1 byte
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 2 bytes
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 3 bytes
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 4 bytes
......
set time zone PST8PDT;
SET
-- Insert into delta compressable data types with delta range that is more than 4 bytes
-- start_ignore
Drop table if exists delta_more_4_byte;
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 1 byte
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 2 bytes
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 3 bytes
......
set time zone PST8PDT;
SET
-- start_ignore
-- end_ignore
-- Insert into delta compressable data types with delta range that is less than 4 bytes
......
set time zone PST8PDT;
SET
-- taken from uao test_suite
-- start_ignore
DROP TABLE IF EXISTS delta_one;
......
set time zone PST8PDT;
SET
-- taken from uao test_suite
-- start_ignore
DROP TABLE IF EXISTS delta_one;
......
set time zone PST8PDT;
SET
-- Out of order update, delete on delta compressed columns
-- start_ignore
Drop table if exists delta_update_t1;
......
set time zone PST8PDT;
SET
-- Table with delta on one column quicklz on other columns
-- start_ignore
Drop table if exists delta_quicklz;
......
set time zone PST8PDT;
SET
-- Table with delta on one column zlib on other columns
-- start_ignore
Drop table if exists delta_zlib;
......
set time zone PST8PDT;
SET
DROP TABLE IF EXISTS rle_block_boundary;
DROP TABLE
CREATE TABLE rle_block_boundary (a int, b text) with (appendonly=true, orientation=column, compresstype=rle_type);
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 1 + delta.
-- start_ignore
Drop table if exists rle_type_1_delta;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 1 + positive and negative delta .
-- start_ignore
Drop table if exists rle_type_1_delta_neg;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
Drop table if exists rle_type_1_delta_null;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 1 + delta.
-- start_ignore
Drop table if exists rle_type_1_delta_oidsf;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 2 + delta.
-- start_ignore
Drop table if exists rle_type_2_delta;
......
-- start_ignore
-- end_ignore
-- Insert into columns with rle_type compresslevel 2 + delta.
set time zone PST8PDT;
SET
-- start_ignore
Drop table if exists rle_type_2_delta_chkt;
psql:/path/sql_file:1: NOTICE: table "rle_type_2_delta_chkt" does not exist, skipping
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 2 + positive and negative delta .
-- start_ignore
Drop table if exists rle_type_2_delta_neg;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
Drop table if exists rle_type_2_delta_null;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 3 + delta.
-- start_ignore
Drop table if exists rle_type_3_delta;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 3 + positive and negative delta .
-- start_ignore
Drop table if exists rle_type_3_delta_neg;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
Drop table if exists rle_type_3_delta_null;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 4 + delta.
-- start_ignore
Drop table if exists rle_type_4_delta;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type compresslevel 4 + positive and negative delta .
-- start_ignore
Drop table if exists rle_type_4_delta_neg;
......
set time zone PST8PDT;
SET
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
Drop table if exists rle_type_4_delta_null;
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with rle_type different levels + delta columns
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Alter a delta column to a non-supported column
-- Alter one delta column to another delta column
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with rle+ delta - create table, create bitmap index + insert data, select with index scan
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with rle+ delta - create table, create btree index + insert data, select with index scan
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with rle+ delta - create table, insert data, create bitmap index, select with index scan
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with rle+ delta - create table, insert data, create btree index, select with index scan
-- start_ignore
......
......@@ -2,6 +2,8 @@
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Many blocks with delta compression
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with delta on one column zlib,quicklz,none on other columns
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with delta + none compression on some columns
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- taken from uao test_suite
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- taken from uao test_suite
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Out of order update, delete on delta compressed columns
-- start_ignore
Drop table if exists delta_update_t1;
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with delta on one column quicklz on other columns
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Table with delta on one column zlib on other columns
-- start_ignore
......
-- @product_version gpdb: [4.3.6.2 - 4.3.99.0)
set time zone PST8PDT;
DROP TABLE IF EXISTS rle_block_boundary;
CREATE TABLE rle_block_boundary (a int, b text) with (appendonly=true, orientation=column, compresstype=rle_type);
COPY rle_block_boundary(b) FROM '%PATH%/data/rle_block_boundary';
SELECT COUNT(*) FROM rle_block_boundary;
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 1 + delta.
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 1 + positive and negative delta .
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 1 + delta.
-- start_ignore
Drop table if exists rle_type_1_delta_oidsf;
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 2 + delta.
-- start_ignore
......
-- @product_version gpdb: [4.3.4.0-]
-- Insert into columns with rle_type compresslevel 2 + delta.
set time zone PST8PDT;
-- start_ignore
Drop table if exists rle_type_2_delta_chkt;
-- end_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 2 + positive and negative delta .
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 3 + delta.
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 3 + positive and negative delta .
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 4 + delta.
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type compresslevel 4 + positive and negative delta .
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into columns with rle_type level 1 + delta + null
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 1 byte
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 2 bytes
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 3 bytes
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 4 bytes
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is more than 4 bytes
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 1 byte
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 2 bytes
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 3 bytes
-- start_ignore
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
-- end_ignore
set time zone PST8PDT;
-- Insert into delta compressable data types with delta range that is less than 4 bytes
-- start_ignore
......
......@@ -3,13 +3,15 @@
-- @modified 2014-04-14 12:00:00
-- @tags storage
-- @description AOCO zlib compressed table : alter add all types of columns
set time zone PST8PDT;
SET
DROP TABLE if exists aoco_allalter;
DROP TABLE
DROP TABLE if exists aoco_allalter_uncompr;
DROP TABLE
CREATE TABLE aoco_allalter (
id SERIAL, DEFAULT COLUMN ENCODING (compresstype=zlib,blocksize=8192,compresslevel=1)) WITH (appendonly=true, orientation=column) distributed randomly ;
psql:/path/sql_file:1: NOTICE: CREATE TABLE will create implicit sequence "aoco_allalter_id_seq" for serial column "aoco_allalter.id"
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/aoco_alter/aoco_alter_sql_test/output/aoco_allalter_planner.sql:17: NOTICE: CREATE TABLE will create implicit sequence "aoco_allalter_id_seq" for serial column "aoco_allalter.id"
CREATE TABLE
-- Alter all kinds of columns
Alter table aoco_allalter ADD COLUMN a1 int default 10 ENCODING (compresstype=quicklz,compresslevel=1,blocksize=8192);
......@@ -107,7 +109,7 @@ ALTER table aoco_allalter set with ( reorganize='true') distributed by (a1);
ALTER TABLE
-- Create Uncompressed table of same schema definition
CREATE TABLE aoco_allalter_uncompr (id SERIAL,a1 int,a2 char(5),a3 numeric,a4 boolean DEFAULT false ,a5 char DEFAULT 'd',a6 text,a7 timestamp,a8 character varying(705),a9 bigint,a10 date,a11 varchar(600),a12 text,a13 decimal,a14 real,a15 bigint,a16 int4 ,a17 bytea,a18 timestamp with time zone,a19 timetz,a20 path,a21 box,a22 macaddr,a23 interval,a24 character varying(800),a25 lseg,a26 point,a27 double precision,a28 circle,a29 int4,a30 numeric(8),a31 polygon,a32 date,a33 real,a34 money,a35 cidr,a36 inet,a37 time,a38 text,a39 bit,a40 bit varying(5),a41 smallint,a42 int) WITH (appendonly=true, orientation=column) distributed randomly;
psql:/path/sql_file:1: NOTICE: CREATE TABLE will create implicit sequence "aoco_allalter_uncompr_id_seq" for serial column "aoco_allalter_uncompr.id"
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/aoco_alter/aoco_alter_sql_test/output/aoco_allalter_planner.sql:114: NOTICE: CREATE TABLE will create implicit sequence "aoco_allalter_uncompr_id_seq" for serial column "aoco_allalter_uncompr.id"
CREATE TABLE
--
-- Insert to uncompressed table
......@@ -161,7 +163,7 @@ INSERT 0 880
a40 | bit varying(5) | default B'1'::bit varying | extended | quicklz | 1 | 8192 |
a41 | smallint | default 12 | plain | quicklz | 1 | 8192 |
a42 | integer | default 2323 | plain | quicklz | 1 | 8192 |
Checksum: f
Checksum: t
Has OIDs: no
Options: appendonly=true, orientation=column
Distributed by: (a1)
......
......@@ -4,6 +4,8 @@
-- @tags storage
-- @description AOCO zlib compressed table : alter add all types of columns
set time zone PST8PDT;
DROP TABLE if exists aoco_allalter;
DROP TABLE if exists aoco_allalter_uncompr;
CREATE TABLE aoco_allalter (
......
......@@ -53,11 +53,11 @@ PARTITION BY LIST (AGG_LEVEL)
);
select * from pg_partitions where tablename = 'mpp10223';
select count(*) from pg_partitions where tablename = 'mpp10223';
ALTER TABLE mpp10223 ALTER PARTITION min15part SPLIT PARTITION P_FUTURE AT ('2010-06-25') INTO (PARTITION P20010101, PARTITION P_FUTURE);
select * from pg_partitions where tablename = 'mpp10223';
select count(*) from pg_partitions where tablename = 'mpp10223';
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1;
DROP TABLE
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_datatype;
DROP TABLE
......@@ -58,7 +64,7 @@ SET
Alter Table sto_alt_uao1_datatype ALTER COLUMN change_datatype_col TYPE int4;
ALTER TABLE
insert into sto_alt_uao1_datatype values ('3_zero', 3, '3_zero', 3, 3, 3, '{3}', 3, 2147483648, '3006-10-19 10:33:54', '3006-10-19 10:33:54+03', '1-1-3003',3);
ERROR: integer out of range
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_ddl/output/alter_ao_tables_coltype.sql:42: ERROR: integer out of range
select * from sto_alt_uao1_datatype order by bigint_col;
text_col | bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default
----------+------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_dropcol;
NOTICE: table "sto_alt_uao1_dropcol" does not exist, skipping
DROP TABLE
CREATE TABLE sto_alt_uao1_dropcol(
text_col text default 'remove it',
......@@ -59,7 +64,7 @@ SET
Alter table sto_alt_uao1_dropcol Drop column float_col;
ALTER TABLE
insert into sto_alt_uao1_dropcol values ('3_zero', 3, '3_zero', 3, 3, 3, '{3}', 3, 3, '2006-10-19 10:23:54', '2006-10-19 10:23:54+03', '1-1-2003',3);
ERROR: INSERT has more expressions than target columns
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_ddl/output/alter_ao_tables_dropcol.sql:42: ERROR: INSERT has more expressions than target columns
select * from sto_alt_uao1_dropcol order by bigint_col;
text_col | bigint_col | char_vary_col | numeric_col | int_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default
----------+------------+---------------+-------------+---------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_renamecol;
DROP TABLE
......@@ -66,7 +72,7 @@ select * from sto_alt_uao1_renamecol order by bigint_col;
(3 rows)
update sto_alt_uao1_renamecol set before_rename_col= 10 where text_col = '1_zero';
ERROR: column "before_rename_col" of relation "sto_alt_uao1_renamecol" does not exist
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_ddl/output/alter_ao_tables_renamecol.sql:43: ERROR: column "before_rename_col" of relation "sto_alt_uao1_renamecol" does not exist
LINE 1: update sto_alt_uao1_renamecol set before_rename_col= 10 wher...
^
select count(*) AS only_visi_tups from sto_alt_uao1_renamecol;
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_default;
DROP TABLE
......@@ -145,7 +151,7 @@ SET
Alter Table sto_alt_uao1_default ALTER COLUMN text_col SET NOT NULL;
ALTER TABLE
insert into sto_alt_uao1_default values ( 5, '5_zero', 5, 5, 5, '{5}', 5, 5, '2006-10-19 10:23:54', '2006-10-19 10:23:54+02', '1-1-2002',5);
ERROR: NULL value in column "text_col" violates not-null constraint
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_ddl/output/alter_ao_tables_setdefault.sql:63: ERROR: null value in column "text_col" violates not-null constraint (seg1 56b2e6740771:25433 pid=18223)
select * from sto_alt_uao1_default order by bigint_col;
bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default | text_col
------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------+--------------
......@@ -176,7 +182,7 @@ SET
Alter Table sto_alt_uao1_default ALTER COLUMN int_col DROP NOT NULL;
ALTER TABLE
insert into sto_alt_uao1_default values ( 6, '6_zero', 6, 6, 6, '{6}', 6, 6, '2006-10-19 10:23:54', '2006-10-19 10:23:54+02', '1-1-2002',6);
ERROR: NULL value in column "text_col" violates not-null constraint
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_ddl/output/alter_ao_tables_setdefault.sql:72: ERROR: null value in column "text_col" violates not-null constraint (seg0 56b2e6740771:25432 pid=18221)
select * from sto_alt_uao1_default order by bigint_col;
bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default | text_col
------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------+--------------
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_setstorage;
DROP TABLE
......@@ -58,7 +64,7 @@ SET
Alter Table sto_alt_uao1_setstorage ALTER char_vary_col SET STORAGE PLAIN;
ALTER TABLE
insert into sto_alt_uao1_setstorage values ('6_zero', 6, '6_zero', 6, 6, '{6}', 6, 6, '2004-10-19 10:23:54', '2004-10-19 10:23:54+02', '1-1-2000',6, 'newcol');
ERROR: invalid input syntax for type real: "{6}"
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_ddl/output/alter_ao_tables_setstorage.sql:41: ERROR: invalid input syntax for type real: "{6}"
select * from sto_alt_uao1_setstorage order by bigint_col;
text_col | bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default
----------+------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1;
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_datatype;
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_dropcol;
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_renamecol;
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_default;
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_setstorage;
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1;
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_addcol.sql:12: NOTICE: table "sto_alt_uao1" does not exist, skipping
DROP TABLE
CREATE TABLE sto_alt_uao1(
text_col text default 'remove it',
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_datatype;
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_coltype.sql:12: NOTICE: table "sto_alt_uao1_datatype" does not exist, skipping
DROP TABLE
CREATE TABLE sto_alt_uao1_datatype(
text_col text default 'remove it',
......@@ -58,7 +65,7 @@ SET
Alter Table sto_alt_uao1_datatype ALTER COLUMN change_datatype_col TYPE int4;
ALTER TABLE
insert into sto_alt_uao1_datatype values ('3_zero', 3, '3_zero', 3, 3, 3, '{3}', 3, 2147483648, '3006-10-19 10:33:54', '3006-10-19 10:33:54+03', '1-1-3003',3);
psql:/path/sql_file:1: ERROR: integer out of range
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_coltype.sql:42: ERROR: integer out of range
select * from sto_alt_uao1_datatype order by bigint_col;
text_col | bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default
----------+------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_renamecol;
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_renamecol.sql:12: NOTICE: table "sto_alt_uao1_renamecol" does not exist, skipping
DROP TABLE
CREATE TABLE sto_alt_uao1_renamecol(
text_col text default 'remove it',
......@@ -66,7 +73,7 @@ select * from sto_alt_uao1_renamecol order by bigint_col;
(3 rows)
update sto_alt_uao1_renamecol set before_rename_col= 10 where text_col = '1_zero';
psql:/path/sql_file:1: ERROR: column "before_rename_col" of relation "sto_alt_uao1_renamecol" does not exist
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_renamecol.sql:43: ERROR: column "before_rename_col" of relation "sto_alt_uao1_renamecol" does not exist
LINE 1: update sto_alt_uao1_renamecol set before_rename_col= 10 wher...
^
select count(*) AS only_visi_tups from sto_alt_uao1_renamecol;
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_default;
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_setdefault.sql:12: NOTICE: table "sto_alt_uao1_default" does not exist, skipping
DROP TABLE
CREATE TABLE sto_alt_uao1_default(
bigint_col bigint,
......@@ -145,7 +152,7 @@ SET
Alter Table sto_alt_uao1_default ALTER COLUMN text_col SET NOT NULL;
ALTER TABLE
insert into sto_alt_uao1_default values ( 5, '5_zero', 5, 5, 5, '{5}', 5, 5, '2006-10-19 10:23:54', '2006-10-19 10:23:54+02', '1-1-2002',5);
psql:/path/sql_file:1: ERROR: NULL value in column "text_col" violates not-null constraint (seg0 rh55-qa03.sanmateo.greenplum.com:40000 pid=23587)
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_setdefault.sql:63: ERROR: null value in column "text_col" violates not-null constraint (seg1 56b2e6740771:25433 pid=30300)
select * from sto_alt_uao1_default order by bigint_col;
bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default | text_col
------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------+--------------
......@@ -176,7 +183,7 @@ SET
Alter Table sto_alt_uao1_default ALTER COLUMN int_col DROP NOT NULL;
ALTER TABLE
insert into sto_alt_uao1_default values ( 6, '6_zero', 6, 6, 6, '{6}', 6, 6, '2006-10-19 10:23:54', '2006-10-19 10:23:54+02', '1-1-2002',6);
psql:/path/sql_file:1: ERROR: NULL value in column "text_col" violates not-null constraint (seg1 rh55-qa03.sanmateo.greenplum.com:40001 pid=23589)
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_setdefault.sql:72: ERROR: null value in column "text_col" violates not-null constraint (seg0 56b2e6740771:25432 pid=30298)
select * from sto_alt_uao1_default order by bigint_col;
bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default | text_col
------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------+--------------
......
-- start_ignore
SET gp_create_table_random_default_distribution=off;
SET
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
SET
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_setstorage;
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_setstorage.sql:12: NOTICE: table "sto_alt_uao1_setstorage" does not exist, skipping
DROP TABLE
CREATE TABLE sto_alt_uao1_setstorage(
text_col text default 'remove it',
......@@ -58,7 +65,7 @@ SET
Alter Table sto_alt_uao1_setstorage ALTER char_vary_col SET STORAGE PLAIN;
ALTER TABLE
insert into sto_alt_uao1_setstorage values ('6_zero', 6, '6_zero', 6, 6, '{6}', 6, 6, '2004-10-19 10:23:54', '2004-10-19 10:23:54+02', '1-1-2000',6, 'newcol');
psql:/path/sql_file:1: ERROR: invalid input syntax for type real: "{6}"
psql:/home/gpadmin/gpdb4/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uaocs_ddl/output/alter_ao_tables_setstorage.sql:41: ERROR: invalid input syntax for type real: "{6}"
select * from sto_alt_uao1_setstorage order by bigint_col;
text_col | bigint_col | char_vary_col | numeric_col | int_col | float_col | int_array_col | before_rename_col | change_datatype_col | a_ts_without | b_ts_with | date_column | col_set_default
----------+------------+---------------+-------------+---------+-----------+---------------+-------------------+---------------------+---------------------+------------------------+-------------+-----------------
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1;
......
-- @description : Alter UAO tables and execute DML statements on the tables
--
set time zone PST8PDT;
-- Create AO tables
DROP TABLE if exists sto_alt_uao1_datatype;
......
-- start_ignore
set time zone PST8PDT;
-- end_ignore
-- @description : Alter UAO tables and execute DML statements on the tables
--
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册