GitHub user chamikaramj opened a pull request:
https://github.com/apache/beam/pull/1728
[BEAM-1239] Updates Python SDK examples to use Beam text source
Currently many Python SDK examples use Dataflow native text source. This
updates examples to use Beam text source available in textio.py.
Additionally this updates usages of text sink to use textio.WriteToText()
instead of io.TextFileSink (latter usage is deprecated).
This does not update snippets.py which contain tests that dynamically
modify source/sink for testing which is hard to do for custom text sink. That
should be fixed in a separate CL.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chamikaramj/incubator-beam
update_examples_to_use_text_source
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/beam/pull/1728.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1728
----
commit 702a1d27089ba4df59c5b986923a50e7865e7a84
Author: Chamikara Jayalath <[email protected]>
Date: 2017-01-03T07:21:05Z
Updates Python SDK examples to use Beam text source/sink.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---