create table A_CS (
	id1 int,
    id2 int
) ENGINE=Columnstore;

SELECT DISTINCT
id1 AS C1,
id2 AS C2,
COUNT(DISTINCT(id1)),
COUNT(DISTINCT(id2))
FROM A_CS
GROUP BY
id1, id2;
-- ==> Error Code 1815. Internal error: IDB-2035. An internal error occured. Check the error log & contact support.

create table A_INNODB (
	id1 int,
    id2 int
) ENGINE=InnoDB;

SELECT DISTINCT
id1 AS C1,
id2 AS C2,
COUNT(DISTINCT(id1)),
COUNT(DISTINCT(id2))
FROM A_INNODB
GROUP BY
id1, id2;
-- works