exec-sql
CREATE DATABASE IF NOT EXISTS db;
CREATE TABLE IF NOT EXISTS db.tbl (a INT PRIMARY KEY, b INT);
ALTER TABLE db.tbl PARTITION BY LIST (a) (
  PARTITION p3p5 VALUES IN ((3), (5)),
  PARTITION p4 VALUES IN (4),
  PARTITION pd VALUES IN (DEFAULT)
);
ALTER TABLE db.tbl CONFIGURE ZONE USING constraints = '[+n1]';
ALTER PARTITION p3p5 OF INDEX db.tbl@tbl_pkey CONFIGURE ZONE USING constraints = '[+n2]';
ALTER PARTITION p4 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/{4-5}                         constraints=[+n3]
/Table/106/1/{5-6}                         constraints=[+n2]
/Table/106/{1/6-2}                         constraints=[+n1]
/Table/10{6/2-7}                           constraints=[+n1]
