瀏覽代碼

HPCC-11086 Rename "recordCount" to "predictedCount" to avoid confusion

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 10 年之前
父節點
當前提交
5467a8cc36
共有 2 個文件被更改,包括 10 次插入7 次删除
  1. 9 6
      ecl/hql/hqlattr.cpp
  2. 1 1
      ecl/hqlcpp/hqlhtcpp.cpp

+ 9 - 6
ecl/hql/hqlattr.cpp

@@ -2365,12 +2365,15 @@ bool HqlRowCountInfo::extractHint(IHqlExpression * hint)
 void HqlRowCountInfo::getText(StringBuffer & text) const
 {
     min->queryValue()->generateECL(text);
-    text.append("..");
-    if (max->queryValue())
-        max->queryValue()->generateECL(text);
-    else
-        text.append("?");
-    text.append("[").append(magnitudeText[magnitude]).append("]");
+    if (min != max)
+    {
+        text.append("..");
+        if (max->queryValue())
+            max->queryValue()->generateECL(text);
+        else
+            text.append("?");
+        text.append("[").append(magnitudeText[magnitude]).append("]");
+    }
 }
 
 void HqlRowCountInfo::limitMin(__int64 value)

+ 1 - 1
ecl/hqlcpp/hqlhtcpp.cpp

@@ -2153,7 +2153,7 @@ void ActivityInstance::createGraphNode(IPropertyTree * defaultSubGraph, bool alw
     {
         StringBuffer text;
         getRecordCountText(text, dataset);
-        addAttribute("recordCount", text);
+        addAttribute("predictedCount", text);
     }
 
     processAnnotations(dataset);