Skip to content

Commit

Permalink
Pipe: Avoid type conversion if error on receiver is caused by insuffi…
Browse files Browse the repository at this point in the history
…cient memory (#13569)
  • Loading branch information
SteveYurongSu authored Sep 22, 2024
1 parent 97e5c35 commit f87de7f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public Optional<TSStatus> visitNode(final StatementNode statementNode, final TSS
@Override
public Optional<TSStatus> visitLoadFile(
final LoadTsFileStatement loadTsFileStatement, final TSStatus status) {
if (status.getCode() != TSStatusCode.LOAD_FILE_ERROR.getStatusCode()) {
if (status.getCode() != TSStatusCode.LOAD_FILE_ERROR.getStatusCode()
// Ignore the error if it is caused by insufficient memory
|| (status.getMessage() != null && status.getMessage().contains("memory"))) {
return Optional.empty();
}

Expand Down

0 comments on commit f87de7f

Please sign in to comment.