Re: JG Schema - addConnection seem to create duplicate connections
hadoopmarc@...
Hi Peter,
toggle quoted message
Show quoted text
Thanks for reporting. I think it is a bug. I checked with the standalone gremlin REPL of janusgraph-0.6.0, using: graph = JanusGraphFactory.open('conf/janusgraph-inmemory.properties') This gives the same results and if you add the from toEdge connections first, the FromEdge gets 4 connections. You can check that two of the four connections are redundant, that is, they refer to the same edge in the schema: gremlin> edges[1].mappedConnections() ==>org.janusgraph.core.Connection@1fecfaea ==>org.janusgraph.core.Connection@4872669f ==>org.janusgraph.core.Connection@483f286e ==>org.janusgraph.core.Connection@4bb147ec gremlin> edges[1].mappedConnections()[0].getConnectionEdge() ==>e[hs0-el-1th-st][525-~T$SchemaRelated->1037] gremlin> edges[1].mappedConnections()[1].getConnectionEdge() ==>e[ikg-el-1th-171][525-~T$SchemaRelated->1549] gremlin> edges[1].mappedConnections()[2].getConnectionEdge() ==>e[hs0-el-1th-st][525-~T$SchemaRelated->1037] gremlin> edges[1].mappedConnections()[3].getConnectionEdge() ==>e[ikg-el-1th-171][525-~T$SchemaRelated->1549] Finally, I checked that the schema results remain the same if you add the following config properties to the graph (as suggested by the ref docs): schema.default=none schema.constraints=true Can you please report this as an issue on: https://github.com/JanusGraph/janusgraph/issues Best wishes, Marc On Tue, Jan 11, 2022 at 01:06 PM, Peter Molnar wrote: mgmt = graph.openManagement(); |
|