exec-sql
CREATE DATABASE IF NOT EXISTS db;
CREATE TABLE IF NOT EXISTS db.tbl (a INT, b INT, PRIMARY KEY (a, b));
ALTER TABLE db.tbl PARTITION BY RANGE (a, b) (
  PARTITION p34 VALUES FROM (MINVALUE, MINVALUE) TO (3, 4),
  PARTITION p56 VALUES FROM (3, 4) TO (5, 6),
  PARTITION p57 VALUES FROM (5, 6) TO (5, 7)
);
ALTER TABLE db.tbl CONFIGURE ZONE USING constraints = '[+n1]';
ALTER PARTITION p34 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n2]';
ALTER PARTITION p56 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n3]';
ALTER PARTITION p57 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n1]';
----

translate database=db table=tbl
----
/Table/106{-/1}                            constraints=[+n1]
/Table/106/1{-/3/4}                        constraints=[+n2]
/Table/106/1/{3/4-5/6}                     constraints=[+n3]
/Table/106/1/5/{6-7}                       constraints=[+n1]
/Table/10{6/1/5/7-7}                       constraints=[+n1]
