Skip to content

Commit a787389

Browse files
author
dapeng
committed
补充维表超时输出left join
1 parent 615ea83 commit a787389

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

core/src/main/java/com/dtstack/flink/sql/side/BaseAsyncReqRow.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,15 @@ public void timeout(CRow input, ResultFuture<CRow> resultFuture) throws Exceptio
145145
LOG.info("Async function call has timed out. input:{}, timeOutNum:{}",input.toString(), timeOutNum);
146146
}
147147
timeOutNum ++;
148-
if(timeOutNum > sideInfo.getSideTableInfo().getAsyncTimeoutNumLimit()){
149-
resultFuture.completeExceptionally(new Exception("Async function call timedoutNum beyond limit."));
150-
} else {
148+
if(sideInfo.getJoinType() == JoinType.LEFT){
151149
resultFuture.complete(null);
150+
return;
151+
}
152+
if(timeOutNum > sideInfo.getSideTableInfo().getAsyncFailMaxNum(Integer.MAX_VALUE)){
153+
resultFuture.completeExceptionally(new Exception("Async function call timedoutNum beyond limit."));
154+
return;
152155
}
156+
resultFuture.complete(null);
153157
}
154158

155159
protected void preInvoke(CRow input, ResultFuture<CRow> resultFuture){

0 commit comments

Comments
 (0)