Bladeren bron

Merge pull request #8002 from ghalliday/issue14483

HPCC-14483 A hash aggregate no longer treated as a trivial operation

Reviewed-By: Jamie Noss <james.noss@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 jaren geleden
bovenliggende
commit
2090edcf68
1 gewijzigde bestanden met toevoegingen van 5 en 1 verwijderingen
  1. 5 1
      ecl/hqlcpp/hqlhtcpp.cpp

+ 5 - 1
ecl/hqlcpp/hqlhtcpp.cpp

@@ -452,8 +452,12 @@ public:
                 return true;
             switch (search->getOperator())
             {
-            case no_selectnth:
             case no_newaggregate:
+                //Hash aggregate is NOT a trivial operation.
+                if (queryRealChild(search, 3))
+                    return false;
+                break;
+            case no_selectnth:
             case no_filter:
                 break;
             case no_select: