mirror of https://github.com/citusdata/citus.git
Fix first_row_number test for stripe_row_limit enforcement
parent
18fe0311c0
commit
681f700321
|
@ -7,13 +7,13 @@ BEGIN;
|
|||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 11) i;
|
||||
ROLLBACK;
|
||||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 12) i;
|
||||
SELECT alter_columnar_table_set('col_table_1', stripe_row_limit => 100);
|
||||
SELECT alter_columnar_table_set('col_table_1', stripe_row_limit => 1000);
|
||||
alter_columnar_table_set
|
||||
---------------------------------------------------------------------
|
||||
|
||||
(1 row)
|
||||
|
||||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 235) i;
|
||||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 2350) i;
|
||||
SELECT row_count, first_row_number FROM columnar.stripe a
|
||||
WHERE a.storage_id = columnar_test_helpers.columnar_relation_storageid('col_table_1'::regclass)
|
||||
ORDER BY stripe_num;
|
||||
|
@ -21,9 +21,9 @@ ORDER BY stripe_num;
|
|||
---------------------------------------------------------------------
|
||||
10 | 1
|
||||
12 | 300001
|
||||
100 | 450001
|
||||
100 | 450101
|
||||
35 | 450201
|
||||
1000 | 450001
|
||||
1000 | 451001
|
||||
350 | 452001
|
||||
(5 rows)
|
||||
|
||||
VACUUM FULL col_table_1;
|
||||
|
@ -33,9 +33,9 @@ WHERE a.storage_id = columnar_test_helpers.columnar_relation_storageid('col_tabl
|
|||
ORDER BY stripe_num;
|
||||
row_count | first_row_number
|
||||
---------------------------------------------------------------------
|
||||
100 | 1
|
||||
100 | 101
|
||||
57 | 201
|
||||
1000 | 1
|
||||
1000 | 1001
|
||||
372 | 2001
|
||||
(3 rows)
|
||||
|
||||
TRUNCATE col_table_1;
|
||||
|
|
|
@ -12,9 +12,9 @@ ROLLBACK;
|
|||
|
||||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 12) i;
|
||||
|
||||
SELECT alter_columnar_table_set('col_table_1', stripe_row_limit => 100);
|
||||
SELECT alter_columnar_table_set('col_table_1', stripe_row_limit => 1000);
|
||||
|
||||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 235) i;
|
||||
INSERT INTO col_table_1 SELECT i FROM generate_series(1, 2350) i;
|
||||
|
||||
SELECT row_count, first_row_number FROM columnar.stripe a
|
||||
WHERE a.storage_id = columnar_test_helpers.columnar_relation_storageid('col_table_1'::regclass)
|
||||
|
|
Loading…
Reference in New Issue