Explorar o código

Merge pull request #7040 from ghalliday/issue13102b

HPCC-13102 Create a splitter node of the correct type

Reviewed By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=10) %!d(string=hai) anos
pai
achega
40518f3ca2
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      ecl/hqlcpp/hqlresource.cpp

+ 5 - 1
ecl/hqlcpp/hqlresource.cpp

@@ -4878,7 +4878,11 @@ IHqlExpression * EclResourcer::createResourced(IHqlExpression * expr, ResourceGr
         {
             if (!source->isAction())
             {
-                source = createDatasetF(no_split, source, createAttribute(balancedAtom), createUniqueId(), NULL);
+                if (source->isDataset())
+                    source = createDatasetF(no_split, source, createAttribute(balancedAtom), createUniqueId(), NULL);
+                else
+                    source = createRowF(no_split, source, createAttribute(balancedAtom), createUniqueId(), NULL);
+
                 ownerGraph->addSharedInput(expr->queryBody(), source);
             }
         }