You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change AOCO_Compression test case to validate pg_relation_size and get_ao_compression_ratio within ±10%
expected range according to issue #487 (#493)
Co-authored-by: congxuebin <hashdata@hashdatadeMacBook-Pro.local>
Copy file name to clipboardExpand all lines: src/test/regress/expected/AOCO_Compression.out
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3572,15 +3572,43 @@ Access method: ao_column
3572
3572
-- When I insert data
3573
3573
insert into mpp17012_compress_test2 values('a',generate_series(1,250),'ksjdhfksdhfksdhfksjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh','bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
3574
3574
-- Then the data will be compressed according to a consistent compression ratio
-- Test that an AO/CO table with compresstype zlib and invalid compress level will error at create
3583
3609
create table a_aoco_table_with_zlib_and_invalid_compression_level(col text) WITH (APPENDONLY=true, COMPRESSTYPE=zlib, compresslevel=-1, ORIENTATION=column);
3610
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'col' as the Cloudberry Database data distribution key for this table.
3611
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
3584
3612
ERROR: value -1 out of bounds for option "compresslevel"
-- Test that an AO/CO table with compresstype rle and invalid compress level will error at create
3615
3669
create table a_aoco_table_with_rle_type_and_invalid_compression_level(col int) WITH (APPENDONLY=true, COMPRESSTYPE=rle_type, compresslevel=-1, ORIENTATION=column);
3670
+
NOTICE: Table doesn't have 'DISTRIBUTED BY' clause -- Using column named 'col' as the Cloudberry Database data distribution key for this table.
3671
+
HINT: The 'DISTRIBUTED BY' clause determines the distribution of data. Make sure column(s) chosen are the optimal data distribution key to minimize skew.
3616
3672
ERROR: value -1 out of bounds for option "compresslevel"
insert into mpp17012_compress_test2 values('a',generate_series(1,250),'ksjdhfksdhfksdhfksjhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh','bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb');
1750
1750
-- Then the data will be compressed according to a consistent compression ratio
0 commit comments