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 LIST (a) (
  PARTITION p3 VALUES IN (3) PARTITION BY LIST (b) (
    PARTITION p34 VALUES IN (4)
  ),
  PARTITION p5 VALUES IN (5) PARTITION BY LIST (b) (
    PARTITION p56 VALUES IN (6),
    PARTITION p5d VALUES IN (DEFAULT)
  ),
  PARTITION pd VALUES IN (DEFAULT)
);
ALTER TABLE db.tbl CONFIGURE ZONE USING constraints = '[+n1]';
ALTER PARTITION p3 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n2]';
ALTER PARTITION p34 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n3]';
ALTER PARTITION p5 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n1]';
ALTER PARTITION p56 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n2]';
ALTER PARTITION p5d OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n3]';
ALTER PARTITION pd 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}                          constraints=[+n1]
/Table/106/1/3{-/4}                        constraints=[+n2]
/Table/106/1/3/{4-5}                       constraints=[+n3]
/Table/106/1/{3/5-4}                       constraints=[+n2]
/Table/106/1/{4-5}                         constraints=[+n1]
/Table/106/1/5{-/6}                        constraints=[+n3]
/Table/106/1/5/{6-7}                       constraints=[+n2]
/Table/106/1/{5/7-6}                       constraints=[+n3]
/Table/106/{1/6-2}                         constraints=[+n1]
/Table/10{6/2-7}                           constraints=[+n1]
