public void clear() {
    if(partitionDescMap != null) {
      partitionDescMap.clear();      
    }
  }
IOPrepareCache is used to cache pre-query io-related objects.
It should be cleared every time a new query issued.
ql/src/java/org/apache/hadoop/hive/ql/io/IOPrepareCache.java