commit | 3aba6b931373b1373c7ba4058b36dac395e746d8 | [log] [tgz] |
---|---|---|
author | vinayakb <vinayakb@123451ca-8445-de46-9d55-352943316053> | Tue Dec 07 01:52:20 2010 +0000 |
committer | vinayakb <vinayakb@123451ca-8445-de46-9d55-352943316053> | Tue Dec 07 01:52:20 2010 +0000 |
tree | ce514a0ab0e54a26f4ec1b146c5082d9255917e9 | |
parent | f3029917f6b2e9a21ae93192c7c3d707da08c126 [diff] |
Fixed bug when sorting empty input git-svn-id: https://hyracks.googlecode.com/svn/trunk/hyracks@227 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java index 91114b2..87c021b 100644 --- a/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java +++ b/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java
@@ -69,7 +69,7 @@ } try { if (runs.size() <= 0) { - if (frameSorter != null) { + if (frameSorter != null && frameSorter.getFrameCount() > 0) { frameSorter.flushFrames(writer); } } else {