Skip to content

Commit

Permalink
Pass empty_match_treatment flag (#29251)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandInguva authored Nov 3, 2023
1 parent a3fe3fa commit 04df11c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/io/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def __init__(
self._empty_match_treatment = empty_match_treatment

def expand(self, pcoll) -> beam.PCollection[filesystem.FileMetadata]:
return pcoll.pipeline | beam.Create([self._file_pattern]) | MatchAll()
return pcoll.pipeline | beam.Create([self._file_pattern]) | MatchAll(
empty_match_treatment=self._empty_match_treatment)


class MatchAll(beam.PTransform):
Expand Down

0 comments on commit 04df11c

Please sign in to comment.