CREATE TABLE t2_m_lch(col1 INT,col2 INT)
PARTITION BY LIST COLUMNS(col1)
SUBPARTITION BY HASH(col2) SUBPARTITIONS 5
(PARTITION p0 VALUES IN(100),
PARTITION p1 VALUES IN(200),
PARTITION p2 VALUES IN(300)
);
--------------------
CREATE TABLE t2_m_lch (
	col1 INT,
	col2 INT
)
PARTITION BY LIST COLUMNS (col1)
SUBPARTITION BY HASH (col2) SUBPARTITIONS 5 (
	PARTITION p0 VALUES IN (100), 
	PARTITION p1 VALUES IN (200), 
	PARTITION p2 VALUES IN (300)
);
------------------------------------------------------------------------------------------------------------------------
CREATE TABLE t2_m_lh (col1 INT NOT NULL,col2 varchar(50),col3 INT NOT NULL)
PARTITION BY LIST (col1)
SUBPARTITION BY HASH(col3) SUBPARTITIONS 3
(PARTITION p0 VALUES IN(100),
PARTITION p1 VALUES IN(200),
PARTITION p2 VALUES IN(300)
);
--------------------
CREATE TABLE t2_m_lh (
	col1 INT NOT NULL,
	col2 varchar(50),
	col3 INT NOT NULL
)
PARTITION BY LIST (col1)
SUBPARTITION BY HASH (col3) SUBPARTITIONS 3 (
	PARTITION p0 VALUES IN (100), 
	PARTITION p1 VALUES IN (200), 
	PARTITION p2 VALUES IN (300)
);