浏览代码

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

This was only significant when determining whether a conditional hash
aggregate should be evalauted as if it was unconditional.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 9 年之前
父节点
当前提交
da408e7d81
共有 1 个文件被更改,包括 5 次插入1 次删除
  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: