create table n_data(MARKET string,CATEGORY string,D map<string,string>,monthid int,value DOUBLE)
STORED AS ORC
;
I load data into it (more than 45000000 lines), look at the warehouse of the hive

The results table consists of 5 files with a size of 10 MB-20 MB, but dfs.block.size sets to 128 MB, this is not optimal for storing small files, because it uses the entire block!
How to set up shared files using 128 MB HDE?
EDIT
insert query:
insert into n_data
select tmp.market,tmp.category,d,adTable.monthid,tmp.factperiod[adTable.monthid] as fact
from (select market,category,d,factperiod,map_keys(factperiod) as month_arr from n_src where market is not null) as tmp
LATERAL VIEW explode(month_arr) adTable AS monthid
source
share