We have a 4 series of steps in impala query, as follows.
step 1: Drop table xx.xx1
stepe: 2: create table xx.xx1
Step3: Insert in to table xx.xx1 from ....
step 4: rename table xx1 to yy1
step 5: Compute stats step yy1 (Warning message memory limit exeeded),
followed by Could not execute the query(trying to figure out, if any memorey properties has to be increased.