Hi there, I'm reading https://cwiki.apache.org/confluence/display/IMPALA/Impala+Row+Batches. It says "If an operator is accumulating batches, this means that it must be careful not to destroy or reset a batch if previous batches are still in use, because this could release memory resources that are used by the previous batches."
This seems to be a good place to use shared_ptr. I'm curious why impala handles this problem using some sort of coding conventions. Is it because we use MemPools? I may be very ignorance. Any explanation is highly appreciated! Regards, Amos
