Skip to content

Commit

Permalink
fixup (apache#26657)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickuncaged1201 authored May 11, 2023
1 parent eb1852a commit 919e8a4
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ public PCollectionRowTuple expand(PCollectionRowTuple input) {

PCollection<String> files = rowInput.apply("Write Rows", transform);
PCollection<Row> output =
files.apply(
"Filenames to Rows",
MapElements.into(rows())
.via(
(String name) ->
Row.withSchema(OUTPUT_SCHEMA)
.withFieldValue(FILE_NAME_FIELD.getName(), name)
.build()));
files
.apply(
"Filenames to Rows",
MapElements.into(rows())
.via(
(String name) ->
Row.withSchema(OUTPUT_SCHEMA)
.withFieldValue(FILE_NAME_FIELD.getName(), name)
.build()))
.setRowSchema(OUTPUT_SCHEMA);

return PCollectionRowTuple.of(OUTPUT_TAG, output);
}
Expand Down

0 comments on commit 919e8a4

Please sign in to comment.