You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@carbondata.apache.org by MickYuan <mi...@qq.com> on 2018/01/22 08:26:20 UTC
A question about partition table
I build a partition table when I do a optimization on sql which like :
select i_item_id
,i_item_desc
,i_current_price
from yuan_cccc_item
where i_current_price between 76 and 76+30
and inv_quantity_on_hand between 100 and 500
group by i_item_id,i_item_desc,i_current_price
order by i_item_id
limit 100;
the partition infomation is :
*i_current_price *= HASH_NUMBER(50)
partitionIds = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49]
But it does not work.
Both spark DAZ and input size have not changed.
normal table :
<http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/file/t32/normal.png>
partition table:
<http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/file/t32/partition.png>
It's not what I expected that partition table optimizes quering performance
by reducing the input size.
How can I do to improve the quering performance by partition table?
--
Sent from: http://apache-carbondata-user-mailing-list.3231.n8.nabble.com/