@Override
  public void reset() {
    super.reset();
    execCacheStack.clear();
  }
Added to reset the state from the last execution. This is added for CQs only.
geode-core/src/main/java/org/apache/geode/cache/query/internal/QueryExecutionContext.java