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

add copy-schema support #1024

Merged
merged 3 commits into from
Jun 9, 2020
Merged

add copy-schema support #1024

merged 3 commits into from
Jun 9, 2020

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Jun 8, 2020

Change-Id: I1b1393c589d8a928b3cb1805a6dc264563d14dc1

Change-Id: I1b1393c589d8a928b3cb1805a6dc264563d14dc1
@javeme javeme force-pushed the support-schema-copy branch 2 times, most recently from a18c62d to 213e747 Compare June 8, 2020 13:48
Change-Id: Ie8111979840449fa331ad13af48276514e8654f3
@codecov
Copy link

codecov bot commented Jun 8, 2020

Codecov Report

Merging #1024 into master will increase coverage by 0.04%.
The diff coverage is 76.72%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1024      +/-   ##
============================================
+ Coverage     69.15%   69.19%   +0.04%     
- Complexity     5361     5401      +40     
============================================
  Files           328      328              
  Lines         26215    26334     +119     
  Branches       3731     3750      +19     
============================================
+ Hits          18129    18222      +93     
- Misses         6327     6333       +6     
- Partials       1759     1779      +20     
Impacted Files Coverage Δ Complexity Δ
...n/java/com/baidu/hugegraph/schema/PropertyKey.java 78.74% <0.00%> (-2.57%) 50.00 <1.00> (+1.00) ⬇️
...in/java/com/baidu/hugegraph/StandardHugeGraph.java 80.00% <28.57%> (-0.49%) 106.00 <10.00> (+9.00) ⬇️
...java/com/baidu/hugegraph/schema/SchemaElement.java 72.54% <33.33%> (-2.46%) 23.00 <2.00> (+2.00) ⬇️
...n/java/com/baidu/hugegraph/schema/SchemaLabel.java 70.96% <36.36%> (-7.88%) 23.00 <2.00> (+2.00) ⬇️
...m/baidu/hugegraph/io/GraphSONSchemaSerializer.java 83.56% <50.00%> (+2.22%) 10.00 <0.00> (ø)
...ain/java/com/baidu/hugegraph/schema/EdgeLabel.java 73.68% <50.00%> (-6.97%) 19.00 <7.00> (+3.00) ⬇️
...n/java/com/baidu/hugegraph/schema/VertexLabel.java 85.00% <60.00%> (-9.12%) 11.00 <3.00> (+1.00) ⬇️
...in/java/com/baidu/hugegraph/schema/IndexLabel.java 79.56% <70.83%> (-4.00%) 39.00 <8.00> (+7.00) ⬇️
...java/com/baidu/hugegraph/schema/SchemaManager.java 93.22% <100.00%> (+1.91%) 28.00 <5.00> (+5.00)
...main/java/com/baidu/hugegraph/schema/Userdata.java 62.50% <100.00%> (+12.50%) 5.00 <2.00> (+1.00)
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 073b070...b4c767b. Read the comment docs.

houzhizhen
houzhizhen previously approved these changes Jun 9, 2020
schema.propertyKey("time").asDate().ifNotExist().create();

schema.vertexLabel("person")
.properties("id", "name", "age", "city","weight", "born")
Copy link
Contributor

Choose a reason for hiding this comment

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

add space between "city" and "weight"

Assert.assertTrue(g2.existsIndexLabel("personByAge"));
Assert.assertTrue(g2.existsIndexLabel("friendByTime"));

for (PropertyKey pk : g2.schema().getPropertyKeys()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

rename pk -> copied, expected -> origin

Change-Id: I90e78b63b7eab76266ee8f10dca36e82787f4519
@zhoney zhoney merged commit b1e1ba9 into master Jun 9, 2020
@zhoney zhoney deleted the support-schema-copy branch June 9, 2020 12:56
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

4 participants