Skip to content

Commit

Permalink
Merge pull request #714 from data-integrations/cherrypick-21024
Browse files Browse the repository at this point in the history
[🍒] CDAP-21024: Return null when there is no outputfield
  • Loading branch information
samdgupi authored May 7, 2024
2 parents 4c8fafc + b9b0202 commit 5711f91
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ private Schema generateDirectiveOutputSchema(Schema inputSchema)
outputFields.add(Schema.Field.of(fieldName, Schema.of(Schema.Type.NULL)));
}
}
if (outputFields.isEmpty()) {
return null;
}
return Schema.recordOf("output", outputFields);
}

Expand Down

0 comments on commit 5711f91

Please sign in to comment.