Jelajahi Sumber

HPCC-10801 Don't generate through spills for roxie or thor

Note they are generally never created for thor anyway if the option to
project spill files is enabled.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 11 tahun lalu
induk
melakukan
ee3c46a10c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      ecl/hqlcpp/hqlresource.cpp

+ 1 - 1
ecl/hqlcpp/hqlresource.cpp

@@ -1872,7 +1872,7 @@ EclResourcer::EclResourcer(IErrorReceiver * _errors, IConstWorkUnit * _wu, Clust
     options.isChildQuery = false;
     options.targetClusterType = targetClusterType;
     options.filteredSpillThreshold = _translatorOptions.filteredReadSpillThreshold;
-    options.allowThroughSpill = _translatorOptions.allowThroughSpill;
+    options.allowThroughSpill = (targetClusterType != RoxieCluster) && (targetClusterType != ThorLCRCluster) && _translatorOptions.allowThroughSpill;
     options.allowThroughResult = (targetClusterType != RoxieCluster) && (targetClusterType != ThorLCRCluster);
     options.cloneFilteredIndex = (targetClusterType != RoxieCluster);
     options.spillSharedConditionals = (targetClusterType == RoxieCluster);