Skip to content

Instantly share code, notes, and snippets.

@huangrh
Forked from brunoripa/reading.py
Created March 8, 2021 03:56
Show Gist options
  • Save huangrh/7f87908689f08b9857d1e1d4ccd5aac9 to your computer and use it in GitHub Desktop.
Save huangrh/7f87908689f08b9857d1e1d4ccd5aac9 to your computer and use it in GitHub Desktop.
with apache_beam.Pipeline(options=options) as p:
rows = (
p |
ReadFromText(input_filename) |
apache_beam.ParDo(Split())
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment