amplab/shark — pull request #295 by sundeepn (2014-02-26 01:58:38+00:00)
Title: This patch addresses two cache issues

1. 'cache tablename' directive overwrites existing memory tables and can cause memory leaks when the cache command is used on an already cached table. caching new partition also causes a memory leak if the parition already exists.
2. using 'cache' directive on a partitioned table causes table to be corrupt. Only the last cached partition is accessable with the rest being leaked.