Details
Description
When reading lines from text files with multiple patterns it is sometimes useful to keep track of the file names from which the lines originated. Example: read tab-delimited files and map their lines to column headers coming from separate files.
It would be nice to have a ReadAllFromTextWithFilename transform, which modifies ReadAllFromText transform in a similar way as ReadFromTextWithFilename modifies the ReadFromText transform to produce tuples of file names paired with text lines.
Attachments
Issue Links
- duplicates
-
BEAM-12665 Add option to return filename from ReadAll transforms
- Resolved
- is related to
-
BEAM-6167 Create a Class to read content of a file keeping track of the file path (python)
- Resolved
- links to