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

Issue 87 - Hadoop InputFormat tests should check property values #508

Merged
merged 1 commit into from
Sep 10, 2017

Conversation

nidmgh
Copy link
Contributor

@nidmgh nidmgh commented Sep 9, 2017

Signed-off-by: Demai Ni nidmgg@gmail.com

Thank you for contributing to JanusGraph.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there an issue associated with this PR? Is it referenced in the commit message?
  • Does your PR body contain #xyz where xyz is the issue number you are trying to resolve?
  • Has your PR been rebased against the latest commit within the target branch (typically master)?
  • Is your initial contribution a single, squashed commit?

For code changes:

  • Have you written and/or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE.txt file, including the main LICENSE.txt file in the root of this repository?
  • If applicable, have you updated the NOTICE.txt file, including the main NOTICE.txt file found in the root of this repository?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

Note:

Please ensure that once the PR is submitted, you check Travis CI for build issues and submit an update to your PR as soon as possible.

@janusgraph-bot janusgraph-bot added the cla: yes This PR is compliant with the CLA label Sep 9, 2017
@nidmgh
Copy link
Contributor Author

nidmgh commented Sep 9, 2017

issue 87. first PR. thanks for reviewing

@nidmgh nidmgh closed this Sep 9, 2017
@nidmgh nidmgh reopened this Sep 9, 2017
@jerryjch
Copy link
Member

jerryjch commented Sep 9, 2017

Fixes #87

@jerryjch jerryjch changed the title issue 87 - Hadoop InputFormat tests should check property values Issue 87 - Hadoop InputFormat tests should check property values Sep 9, 2017
Copy link
Member

@jerryjch jerryjch left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -70,12 +70,18 @@ public void testReadWideVertexWithManyProperties() throws Exception {
Map<String, Object> propertiesOnVertex = graph.traversal().V().valueMap().next();
List<?> valuesOnP = (List)propertiesOnVertex.values().iterator().next();
assertEquals(numProps, valuesOnP.size());
for (int i=0;i< numProps; i++) {
assertEquals(Integer.toString(i), valuesOnP.get(i).toString() );
Copy link
Member

Choose a reason for hiding this comment

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

Please delete extra space before closing parenthesis.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix it too. thx

Graph g = getGraph();
GraphTraversalSource t = g.traversal(GraphTraversalSource.computer(SparkGraphComputer.class));
assertEquals(numV, (long) t.V().count().next());
propertiesOnVertex = t.V().valueMap().next();
valuesOnP = (List)propertiesOnVertex.values().iterator().next();
assertEquals(numProps, valuesOnP.size());
for (int i=0;i< numProps; i++) {
assertEquals(Integer.toString(i), valuesOnP.get(i).toString() );
Copy link
Member

Choose a reason for hiding this comment

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

Please delete extra space before closing parenthesis.

@@ -70,12 +70,18 @@ public void testReadWideVertexWithManyProperties() throws Exception {
Map<String, Object> propertiesOnVertex = graph.traversal().V().valueMap().next();
List<?> valuesOnP = (List)propertiesOnVertex.values().iterator().next();
assertEquals(numProps, valuesOnP.size());
for (int i=0;i< numProps; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

For consistency and readability, please format with spaces around = and < and space after ;:

for (int i = 0; i < numProps; i++) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the comment. I will fix it

Graph g = getGraph();
GraphTraversalSource t = g.traversal(GraphTraversalSource.computer(SparkGraphComputer.class));
assertEquals(numV, (long) t.V().count().next());
propertiesOnVertex = t.V().valueMap().next();
valuesOnP = (List)propertiesOnVertex.values().iterator().next();
assertEquals(numProps, valuesOnP.size());
for (int i=0;i< numProps; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

For consistency and readability, please format with spaces around = and < and space after ;:

for (int i = 0; i < numProps; i++) {

…perty values

Signed-off-by: Demai Ni <nidmgg@gmail.com>
@jerryjch jerryjch merged commit 0b8a55a into JanusGraph:master Sep 10, 2017
@jerryjch
Copy link
Member

All review comments have been addressed.

bwatson-rti-org pushed a commit to bwatson-rti-org/janusgraph that referenced this pull request Mar 9, 2019
Issue 87 - Hadoop InputFormat tests should check property values
micpod pushed a commit to micpod/janusgraph that referenced this pull request Nov 5, 2019
Issue 87 - Hadoop InputFormat tests should check property values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This PR is compliant with the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants