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-354]: Modify DatastoreIO to use the v1beta3 API #499

Closed
wants to merge 5 commits into from

Conversation

vikkyrk
Copy link
Contributor

@vikkyrk vikkyrk commented Jun 20, 2016

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. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • 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.

  • Use v1beta3 datastore API and remove all v1beta2 dependencies
  • Modify tests to pass.

@vikkyrk
Copy link
Contributor Author

vikkyrk commented Jun 20, 2016

Hi @dhalperi @davorbonaci, can you take a look?

@@ -479,8 +477,7 @@ public static void main(String[] args) throws IOException {
if (options.getOutputToDatastore()) {
toWrite
.apply(ParDo.named("FormatForDatastore").of(new FormatForDatastore(options.getKind())))
.apply(DatastoreIO.writeTo(MoreObjects.firstNonNull(
options.getOutputDataset(), options.getProject())));
.apply(DatastoreIO.writeTo(options.getProject()));
Copy link
Contributor

Choose a reason for hiding this comment

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

please keep the OutputDataset option here. You may rename it to OutputProject if you like.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What if OutputProject is different from the current Project. Are dataflow pipelines allowed to work with multiple projects at the same time?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes this is a common and necessary use case.

On Mon, Jun 20, 2016 at 2:35 PM, Vikas Kedigehalli <notifications@github.com

wrote:

In
examples/java/src/main/java/org/apache/beam/examples/complete/AutoComplete.java
#499 (comment):

@@ -479,8 +477,7 @@ public static void main(String[] args) throws IOException {
if (options.getOutputToDatastore()) {
toWrite
.apply(ParDo.named("FormatForDatastore").of(new FormatForDatastore(options.getKind())))

  •  .apply(DatastoreIO.writeTo(MoreObjects.firstNonNull(
    
  •      options.getOutputDataset(), options.getProject())));
    
  •  .apply(DatastoreIO.writeTo(options.getProject()));
    

What if OutputProject is different from the current Project. Are dataflow
pipelines allowed to work with multiple projects at the same time?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-beam/pull/499/files/834b87394f5834f7c6475032cafaed89be977ecb#r67771180,
or mute the thread
https://github.com/notifications/unsubscribe/AAgIT7OFwqMhdKeVuxt6f85WKhzfxWFuks5qNwevgaJpZM4I5_6o
.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok.

@vikkyrk
Copy link
Contributor Author

vikkyrk commented Jun 20, 2016

Fixed Dan's review comments.

@dhalperi
Copy link
Contributor

R: @dhalperi

@dhalperi
Copy link
Contributor

Can you please post a verbose mvn dependency:tree -Dverbose diff from before this change, as well as post the entire tree (without -Dverbose) after it?

@vikkyrk
Copy link
Contributor Author

vikkyrk commented Jun 22, 2016

@dhalperi Attached the files. I looked at the dependencies brought it by beta3 but all of them were something we already used and with same versions.
dependencies.txt
mvndepDiff.txt

@dhalperi
Copy link
Contributor

LGTM; merged

@asfgit asfgit closed this in 3bc0fe6 Jun 22, 2016
@vikkyrk vikkyrk deleted the vikasrk/datastoreIO-v1beta3 branch June 22, 2016 17:01
Abacn pushed a commit to Abacn/beam that referenced this pull request Jan 31, 2023
johnjcasey pushed a commit to johnjcasey/beam that referenced this pull request Feb 8, 2023
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
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.

None yet

2 participants