Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-2862] Add PTransform overrides specific to execution of StatefulDoFns over the Fn API using the DataflowRunner. #3832

Closed
wants to merge 2 commits into from

Conversation

lukecwik
Copy link
Member

@lukecwik lukecwik commented Sep 9, 2017

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.

…lDoFns over the Fn API using the DataflowRunner.
@lukecwik
Copy link
Member Author

lukecwik commented Sep 9, 2017

R: @tgroh

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 69.695% when pulling 58c62b3 on lukecwik:state_api2 into e9d3a4a on apache:master.

Copy link
Member

@tgroh tgroh left a comment

Choose a reason for hiding this comment

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

LGTM

}

@Test
@Ignore("TODO: Add support for user state in a ParDo.Multi once PTransformMatcher exposes "
Copy link
Member

Choose a reason for hiding this comment

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

JIRA for this work?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done
BEAM-2902

* A key preserving {@link DoFn} that expands the output of a GBK {@code KV<K, Iterable<V>>} into
* individual KVs.
*/
static class ExpandGbkFn<K, V>
Copy link
Member

Choose a reason for hiding this comment

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

I almost want to move this to Flatten, e.g. Flatten.valueIterables(), but I think that generally runner authors are the only ones who would use it.

However, it could find a home in runners-core-construction if not in the core SDK.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm sure once we have key preserving as a piece of info available, we will want to expose these for re-use.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 69.459% when pulling 41a552d on lukecwik:state_api2 into e9d3a4a on apache:master.

@asfgit asfgit closed this in 774b268 Sep 11, 2017
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.

3 participants