Parcourir la source

Merge pull request #11156 from hpcc-systems/revert-11089-issue19555

Revert "HPCC-19555 Move information about child queries to the correct subgraph"

Reverting pending investigation
Richard Chapman il y a 7 ans
Parent
commit
981451dd3d
4 fichiers modifiés avec 1 ajouts et 10 suppressions
  1. 0 3
      ecl/eclagent/eclgraph.cpp
  2. 1 1
      ecl/hqlcpp/hqlcppds.cpp
  3. 0 2
      ecl/hqlcpp/hqlhtcpp.cpp
  4. 0 4
      thorlcr/graph/thgraph.cpp

+ 0 - 3
ecl/eclagent/eclgraph.cpp

@@ -814,9 +814,6 @@ void EclSubGraph::createFromXGMML(EclGraph * graph, ILoadedDllEntry * dll, IProp
     {
         IPropertyTree &edge = iter2->query();
 
-        if (edge.getPropBool("att[@name=\"_childGraph\"]/@value", false))
-            continue;
-
         unsigned sourceId = edge.getPropInt("@source");
         unsigned targetId = edge.getPropInt("@target");
         unsigned sourceOutput = edge.getPropInt("att[@name=\"_sourceIndex\"]/@value", 0);

+ 1 - 1
ecl/hqlcpp/hqlcppds.cpp

@@ -5445,7 +5445,7 @@ ABoundActivity * HqlCppTranslator::doBuildActivitySetGraphResult(BuildCtx & ctx,
         else
             relationship = "Child";
 
-        addDependency(ctx, instance->queryBoundActivity(), parentActivity->queryActive(), childAtom, relationship);
+        addDependency(ctx, instance->queryBoundActivity(), parentActivity, childAtom, relationship);
     }
 
     instance->addAttributeBool(WaIsSpill, isSpill);

+ 0 - 2
ecl/hqlcpp/hqlhtcpp.cpp

@@ -7344,8 +7344,6 @@ void HqlCppTranslator::addDependency(BuildCtx & ctx, ABoundActivity * sourceActi
             throwError1(HQLERR_DependencyWithinGraph, sinkActivity->queryGraphId());
         graphTree = sinkGraphTree;
     }
-    if (sourceActivity->queryContainerId() == sinkActivity->queryActivityId())
-        graphTree = sinkGraphTree;
 
     unsigned outputIndex = 0;
     if (kind != childAtom)

+ 0 - 4
thorlcr/graph/thgraph.cpp

@@ -1947,10 +1947,6 @@ void CGraphBase::createFromXGMML(IPropertyTree *_node, CGraphBase *_owner, CGrap
     ForEach(*edges)
     {
         IPropertyTree &edge = edges->query();
-        //Ignore edges that represent dependencies from parent activities to child activities.
-        if (edge.getPropBool("att[@name=\"_childGraph\"]/@value", false))
-            continue;
-
         unsigned sourceOutput = edge.getPropInt("att[@name=\"_sourceIndex\"]/@value", 0);
         unsigned targetInput = edge.getPropInt("att[@name=\"_targetIndex\"]/@value", 0);
         CGraphElementBase *source = queryElement(edge.getPropInt("@source"));