/* 
Distinct query near the 4GB TotalUmMemory limit repeated several times to track memory trend.
*/
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
select count(distinct p_partkey) from part where p_partkey <= 105000000;
select calgetstats();
