Skip to content

Conversation

@davidcavazos
Copy link

It was a little confusing to see the outputs of the code as lists rather than what actually outputs when running the code.

Changing the outputs of the code snippets to what we actually see when running the code, this makes it consistent with the outputs of the notebooks as well.

It's mostly adding some logic to "parse" the stdout outputs, but the logic of the code samples stays the same.

I did some style changes to the Partition samples to make them easier to read as well.

R: @aaltay


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@davidcavazos davidcavazos force-pushed the snippets-stdout-outputs branch 3 times, most recently from 4abb610 to 70271b0 Compare October 16, 2019 23:10
@davidcavazos davidcavazos force-pushed the snippets-stdout-outputs branch from 70271b0 to 879a67a Compare October 16, 2019 23:15
@davidcavazos
Copy link
Author

Added a wrapper function to correctly handle UTF-8 strings as well as Python objects/dictionaries from stdout in both Python 2 and 3.

@davidcavazos
Copy link
Author

@aaltay This is ready for review

@aaltay aaltay merged commit 4fa1501 into apache:master Oct 22, 2019
@davidcavazos davidcavazos deleted the snippets-stdout-outputs branch October 22, 2019 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants