diff --git a/core/src/main/scala/com/intel/oap/expression/ColumnarSorter.scala b/core/src/main/scala/com/intel/oap/expression/ColumnarSorter.scala index b78d0e17b..549386f6b 100644 --- a/core/src/main/scala/com/intel/oap/expression/ColumnarSorter.scala +++ b/core/src/main/scala/com/intel/oap/expression/ColumnarSorter.scala @@ -92,6 +92,8 @@ class ColumnarSorter( elapse.set(NANOSECONDS.toMillis(total_elapse)) sortTime.set(NANOSECONDS.toMillis(sort_elapse)) shuffleTime.set(NANOSECONDS.toMillis(shuffle_elapse)) + inputBatchHolder.foreach(cb => cb.close()) + inputBatchHolder.clear if (sorter != null) { sorter.close() }