Jelajahi Sumber

Merge pull request #10159 from ghalliday/issue17418

HPCC-17418 Remove invalid warning on distributed LHS for lookup join

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 tahun lalu
induk
melakukan
126e8e04dd
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      ecl/hql/hqlgram.y

+ 2 - 1
ecl/hql/hqlgram.y

@@ -8212,7 +8212,8 @@ simpleDataSet
                             IHqlExpression *join = createDataset(no_join, left, createComma(right, cond, createComma(transform.getClear(), flags.getClear(), $12.getExpr())));
 
                             bool isLocal = join->hasAttribute(localAtom);
-                            parser->checkDistribution($3, left, isLocal, true);
+                            if (!join->hasAttribute(lookupAtom) && !isKeyedJoin(join))
+                                parser->checkDistribution($3, left, isLocal, true);
                             parser->checkDistribution($5, right, isLocal, true);
                             parser->checkJoinFlags($1, join);
                             parser->checkOnFailRecord(join, $1);