Skip to content

Commit

Permalink
Merge pull request #713 from data-integrations/CDAP-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 564f734 + f4b8805 commit 637cf06
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 637cf06

Please sign in to comment.