Browse Source

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 10 years ago
parent
commit
40518f3ca2
1 changed files with 5 additions and 1 deletions
  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);
             }
         }