[Bug][TaskPlugin] Task execution error occurs when the Zeppelin task zeppelinNoteId parameter value is an empty string (#13162)

* [Bug] [TaskPlugin-Zeppelin] Task execution error occurs when the Zeppelin task zeppelinNoteId parameter value is an empty string. #13161
This commit is contained in:
LucasClt 2023-01-06 19:29:05 +08:00 committed by GitHub
parent ba0a253f09
commit a1f5675012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public class ZeppelinTask extends AbstractRemoteTask {
noteId = this.zClient.cloneNote(noteId, cloneNotePath);
}
if (paragraphId == null) {
if (paragraphId == null || paragraphId.trim().length() == 0) {
final NoteResult noteResult = this.zClient.executeNote(noteId, zeppelinParamsMap);
final List<ParagraphResult> paragraphResultList = noteResult.getParagraphResultList();
StringBuilder resultContentBuilder = new StringBuilder();