HPCC-14196 Fix out of order graph result access caused by HPCC-14196 Reviewed-By: Jamie Noss <james.noss@lexisnexis.com> Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -2740,7 +2740,8 @@ IHqlExpression * SpillerInfo::createSpilledWrite(IHqlExpression * transformed, b
void SpillerInfo::setPotentialSpillFile(IHqlExpression * expr)
{
- if (!expr || canUseResultInChildQuery(expr) || !isUsedFromChild())
+ if (!expr ||
+ ((canUseResultInChildQuery(expr) || !isUsedFromChild()) && (expr->getOperator() != no_setgraphresult)))
outputToUseForSpill = expr;
}