فهرست منبع

HPCC-9018 Update based on review and add reporting of invalid queryid

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 11 سال پیش
والد
کامیت
197f7b99e1
2فایلهای تغییر یافته به همراه8 افزوده شده و 7 حذف شده
  1. 5 0
      common/workunit/pkgimpl.hpp
  2. 3 7
      ecl/ecl-package/ecl-package.cpp

+ 5 - 0
common/workunit/pkgimpl.hpp

@@ -456,6 +456,11 @@ public:
                 Owned<IPropertyTree> queryEntry = qs->getPropTree(xpath);
                 if (queryEntry)
                     tempQuerySet->addPropTree("Query", queryEntry.getClear());
+                else
+                {
+                    VStringBuffer msg("Query %s not found in %s queryset", queriesToCheck.item(i), querySet.sget());
+                    err.append(msg);
+                }
             }
             queries.setown(tempQuerySet->getElements("Query"));
         }

+ 3 - 7
ecl/ecl-package/ecl-package.cpp

@@ -683,11 +683,6 @@ public:
             StringAttr queryIds;
             if (iter.matchOption(queryIds, ECLOPT_QUERYID))
             {
-                optQueryIds.append(queryIds.get());
-                continue;
-            }
-            if (iter.matchOption(queryIds, ECLOPT_QUERYIDS))
-            {
                 optQueryIds.appendList(queryIds.get(), ",");
                 continue;
             }
@@ -820,8 +815,9 @@ public:
                     "   --active                    Validate the active packagemap\n"
                     "   --check-dfs                 Verify that subfiles exist in DFS\n"
                     "   -pm, --pmid                 Identifier of packagemap to validate\n"
-                    "   --queryid                   Query to verify against packagemap, parameter can be used more than once\n"
-                    "   --queryids                  Comma separated list of queries to verify against packagemap\n"
+                    "   --queryid                   Query to verify against packagemap, multiple queries can be\n"
+                    "                               specified using a comma separated list, or by using --queryid\n"
+                    "                               more than once. Default is all queries in the target queryset\n"
                     "   --global-scope              The specified packagemap can be shared across multiple targets\n",
                     stdout);