浏览代码

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 年之前
父节点
当前提交
40518f3ca2
共有 1 个文件被更改,包括 5 次插入1 次删除
  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);
             }
         }