Skip to content

Extract the Main Input PCollection in ParDos#3190

Closed
tgroh wants to merge 4 commits intoapache:masterfrom
tgroh:par_dos_get_main_input
Closed

Extract the Main Input PCollection in ParDos#3190
tgroh wants to merge 4 commits intoapache:masterfrom
tgroh:par_dos_get_main_input

Conversation

@tgroh
Copy link
Member

@tgroh tgroh commented May 19, 2017

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify.
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@tgroh
Copy link
Member Author

tgroh commented May 19, 2017

R: @kennknowles

@tgroh tgroh force-pushed the par_dos_get_main_input branch from 107693c to 6698929 Compare May 19, 2017 21:48
ptransform.getSpec().getUrn());
ParDoPayload payload = ptransform.getSpec().getParameter().unpack(ParDoPayload.class);
String mainInputId = null;
for (Map.Entry<String, String> input : ptransform.getInputsMap().entrySet()) {
Copy link
Member

Choose a reason for hiding this comment

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

ptransform.getInputsMap().keys().removeAll(payload.getSideInputsMap().keys()?

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.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 70.649% when pulling 1930e3c on tgroh:par_dos_get_main_input into 64cea06 on apache:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 70.664% when pulling 1930e3c on tgroh:par_dos_get_main_input into 64cea06 on apache:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 70.657% when pulling 1930e3c on tgroh:par_dos_get_main_input into 64cea06 on apache:master.

return doFnAndMainOutputTagFromProto(payload.getDoFn()).getMainOutputTag();
}

public static RunnerApi.PCollection getMainInput(
Copy link
Member

Choose a reason for hiding this comment

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

This seems unused except in test. Have I missed something?

Should javadoc the requirement that it is a ParDo, or just decompose the input outside the method, and perhaps also make it private.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is going to be used within the Dataflow Worker

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 70.664% when pulling cf12477 on tgroh:par_dos_get_main_input into 64cea06 on apache:master.

Copy link
Member

@kennknowles kennknowles left a comment

Choose a reason for hiding this comment

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

LGTM

@kennknowles
Copy link
Member

You know, I think I just reviewed one commit. Give me a second.

@kennknowles
Copy link
Member

Yea the other commit is just fine. Great.

@asfgit asfgit closed this in 996782b May 22, 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