Skip to content

Commit

Permalink
Update externals/kyuubi-flink-sql-engine/src/main/scala/org/apache/ky…
Browse files Browse the repository at this point in the history
…uubi/engine/flink/result/ResultSet.scala

Co-authored-by: cxzl25 <[email protected]>
  • Loading branch information
link3280 and cxzl25 authored Apr 1, 2023
1 parent ee2c64d commit 0eafbd7
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ object ResultSet {
}

def fromJobId(jobID: JobID): ResultSet = {
var data: Array[Row] = null;
if (jobID != null) {
data = Array(Row.of(jobID.toString));
val data: Array[Row] = if (jobID != null) {
Array(Row.of(jobID.toString))
} else {
// should not happen
data = Array(Row.of("(Empty Job ID)"));
Array(Row.of("(Empty Job ID)"))
}
builder
.resultKind(ResultKind.SUCCESS_WITH_CONTENT)
Expand Down

0 comments on commit 0eafbd7

Please sign in to comment.