Skip to content

Do not merge: scratch work 2#3646

Closed
charlesccychen wants to merge 22 commits into
apache:masterfrom
charlesccychen:streaming-test
Closed

Do not merge: scratch work 2#3646
charlesccychen wants to merge 22 commits into
apache:masterfrom
charlesccychen:streaming-test

Conversation

@charlesccychen

Copy link
Copy Markdown
Contributor

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a JIRA issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes.
  • Each commit in the pull request should have a meaningful subject line and body.
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean verify to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

@charlesccychen charlesccychen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cosmoskitten cosmoskitten left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix before approval.


At sdks/python/apache_beam/pipeline.py:139:

    self.transforms_stack = [AppliedPTransform(None, None, '', None)]

Thanks!


At sdks/python/apache_beam/pipeline.py:160:

  def run(self, test_runner_api=True):

I don't like this name.

@@ -161,7 +161,7 @@ def run(self, test_runner_api=True):
"""Runs the pipeline. Returns whatever our runner returns after running."""

# When possible, invoke a round trip through the runner API.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix

@cosmoskitten cosmoskitten left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@charlesccychen charlesccychen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At sdks/python/apache_beam/pipeline.py:160:

  def run(self, test_runner_api=True):

cosmoskitten wrote:
I don't like this name.

Done.

@@ -161,7 +161,7 @@ def run(self, test_runner_api=True):
"""Runs the pipeline. Returns whatever our runner returns after running."""

# When possible, invoke a round trip through the runner API.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cosmoskitten wrote:
Please fix

Done.

@charlesccychen charlesccychen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.


At sdks/python/apache_beam/pvalue.py:103:

class PCollection(PValue):

Please fix PCollection.

return _Bundle(output_pcollection, self._stacked)
return _Bundle(output_pcollection, None, stacked=self._stacked)

def create_keyed_bundle(self, output_pcollection, key):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix create_keyed_bundle.

@cosmoskitten cosmoskitten left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

@charlesccychen charlesccychen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R: @aaltay

@aaltay aaltay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! this looks good.


At sdks/python/apache_beam/pvalue.py:103:

class PCollection(PValue):

charlesccychen wrote:
Please fix PCollection.

Acknowledged.

return _Bundle(output_pcollection, self._stacked)
return _Bundle(output_pcollection, None, stacked=self._stacked)

def create_keyed_bundle(self, output_pcollection, key):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

charlesccychen wrote:
Please fix create_keyed_bundle.

Done.

@aaltay aaltay left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

charlesccychen wrote:
Please fix.

Done.

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.

4 participants