问题
Does dask.bag.read_text() preserve the line order? Is it still preserved when reading from multiple files?
bag = db.read_text('program.log')
bag = db.read_text(['program.log', 'program.log.1'])
回答1:
Informally, yes, most Dask.bag operations do preserve order.
This behavior is not strictly guaranteed, however I don't see any reason to anticipate a change in the near future.
来源:https://stackoverflow.com/questions/39652733/dask-bag-read-text-line-order