Distribution column can be dropped for MODULO distribution tables.
ALTER TABLE xl_at3h ADD NODE (datanode_2);
ALTER TABLE xl_at3h DISTRIBUTE BY REPLICATION;
-- MODULO Distributed table:
--- Distribution column cannot be dropped (BUG: It can be dropped now. Test Fails).
CREATE TABLE xl_at2m (
product_no INT8,
product_id INT2
ALTER TABLE xl_at2m RENAME TO xl_at3m;
ALTER TABLE xl_at3m DELETE NODE (datanode_2);
ALTER TABLE xl_at3m ADD NODE (datanode_2);
-ALTER TABLE xl_at3m DROP COLUMN product_identifier;--bug - distribution column can be dropped.
ALTER TABLE xl_at3m DISTRIBUTE BY REPLICATION;
DROP TABLE xl_at;
DROP TABLE xl_at1;
+-- #27
+-- Distribution column can be dropped for MODULO distribution tables.
+CREATE TABLE xl_at2m (
+ product_no INT8,
+ product_id INT2
+) DISTRIBUTE BY MODULO (product_id);
+ALTER TABLE xl_at2m DROP COLUMN product_id;
+ERROR: Distribution column cannot be dropped
+DROP TABLE xl_at2m;
-- #6
-- REFRESH MATERIALISED VIEW CONCURRENTLY gives error
CREATE TABLE t (a int, b int);
ALTER TABLE xl_at3h DISTRIBUTE BY REPLICATION;
-- MODULO Distributed table:
--- Distribution column cannot be dropped (BUG: It can be dropped now. Test Fails).
CREATE TABLE xl_at2m (
product_no INT8,
ALTER TABLE xl_at3m ADD NODE (datanode_2);
-ALTER TABLE xl_at3m DROP COLUMN product_identifier;--bug - distribution column can be dropped.
-
ALTER TABLE xl_at3m DISTRIBUTE BY REPLICATION;
DROP TABLE xl_at;
+-- #27
+-- Distribution column can be dropped for MODULO distribution tables.
+CREATE TABLE xl_at2m (
+ product_no INT8,
+ product_id INT2
+) DISTRIBUTE BY MODULO (product_id);
+ALTER TABLE xl_at2m DROP COLUMN product_id;
+DROP TABLE xl_at2m;
-- #6
-- REFRESH MATERIALISED VIEW CONCURRENTLY gives error
CREATE TABLE t (a int, b int);