Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1948#discussion_r166841331
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/scan/executor/impl/AbstractQueryExecutor.java
 ---
    @@ -586,16 +586,27 @@ private int getKeySize(List<QueryDimension> 
queryDimension,
        */
       @Override public void finish() throws QueryExecutionException {
         CarbonUtil.clearBlockCache(queryProperties.dataBlocks);
    +    
UnsafeMemoryManager.INSTANCE.freeMemoryAll(ThreadLocalTaskInfo.getCarbonTaskInfo().getTaskId());
    --- End diff --
    
    Better move down it to after closing of queryIterator


---

Reply via email to