Skip to content

Commit

Permalink
CDAP-21024: Return null when there is no outputfield
Browse files Browse the repository at this point in the history
  • Loading branch information
samdgupi committed May 6, 2024
1 parent 564f734 commit f4b8805
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 f4b8805

Please sign in to comment.