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-698] Use AutoValue in MongoDB GridFS #1054
Conversation
I'll do a more thorough review later, but two quick comments:
since the parser is required for the non-string case. |
Good point. Using two read methods with different signature can work for sure. |
I believe something like:
would also work. The unchecked cast is slightly annoying, but would work. |
83d1ed7
to
25b8663
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll submit a patch for the eclipse warnings (as there are some other eclipse warnings in the code that can all be fixed at once)
@@ -169,7 +168,7 @@ public void testFullRead() throws Exception { | |||
TestPipeline pipeline = TestPipeline.create(); | |||
|
|||
PCollection<String> output = pipeline.apply( | |||
MongoDbGridFSIO.read() | |||
MongoDbGridFSIO.<String>read() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: this generates a warning in eclipse as the <read>
is not needed. The other two tests have a similar issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I will push then you can provide a patch to fix the eclipse warning (I didn't have any warning with IntelliJ). Thanks.
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull request
mvn clean verify
. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>
in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.