This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SortedGcsCsvShardFileMergeReader(object): | |
"""Merges several sorted .csv files stored on GCS. | |
This class is both an iterator and a context manager. | |
Let's say there are 2 .csv files stored on GCS, with contents like: | |
/bucket/file_1.csv: | |
[0, "Matt"], | |
[0, "Sam"], |
OlderNewer