You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/02 06:54:39 UTC
[jira] [Commented] (S2GRAPH-28) _to option gives wrong result on
query.
[ https://issues.apache.org/jira/browse/S2GRAPH-28?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127714#comment-15127714 ]
ASF GitHub Bot commented on S2GRAPH-28:
---------------------------------------
Github user daewon commented on the pull request:
https://github.com/apache/incubator-s2graph/pull/13#issuecomment-178389915
+1
> _to option gives wrong result on query.
> ---------------------------------------
>
> Key: S2GRAPH-28
> URL: https://issues.apache.org/jira/browse/S2GRAPH-28
> Project: S2Graph
> Issue Type: Bug
> Reporter: DOYUNG YOON
> Assignee: DOYUNG YOON
> Labels: bug, newbie, query
> Original Estimate: 3h
> Remaining Estimate: 3h
>
> following is steps to reproduce bug.
> # create service.
> {noformat}
> curl -XPOST localhost:9000/graphs/createService -H 'Content-Type: Application/json' -d '
> {"serviceName": "s2graph-test"}
> '
> {noformat}
> # create label.
> {noformat}
> curl -XPOST alpha-s2graph.daumkakao.io:9000/graphs/createLabel -H 'Content-Type: Application/json' -d '
> {
> "label": "friend",
> "srcServiceName": "s2graph-test",
> "srcColumnName": "user_id",
> "srcColumnType": "string",
> "tgtServiceName": "s2graph-test",
> "tgtColumnName": "user_id",
> "tgtColumnType": "string",
> "indices": [],
> "props": [],
> "serviceName": "s2graph-test",
> "consistencyLevel": "strong"
> }
> '
> {noformat}
> # insert test data.
> {noformat}
> curl -XPOST localhost:9000/graphs/edges/insert -H 'Content-Type: Application/json' -d '
> [
> {"timestamp": 1451374817379, "from": "4c9343846613f66931000007", "to": "4cc8ad306899f56692000004", "label": "friend"}
> ]
> '
> {noformat}
> # delete above relation.
> {noformat}
> curl -XPOST localhost:9000/graphs/edges/delete -H 'Content-Type: Application/json' -d '
> [
> {"timestamp": 1451374817380, "from": "4c9343846613f66931000007", "to": "4cc8ad306899f56692000004", "label": "friend"}
> ]
> '
> {noformat}
> # select index edges.
> {noformat}
> curl -XPOST localhost:9000/graphs/getEdges -H 'Content-Type: Application/json' -d '
> {
> "srcVertices": [{
> "serviceName": "s2graph-test",
> "columnName": "user_id",
> "id": "4c9343846613f66931000007"
> }],
> "steps": [{
> "step": [{
> "label": "path_friend",
> "direction": "out",
> "offset": 0,
> "limit": 10
> }]
> }]
> }
> '
> {noformat}
> this gives no edges which is expected.
> then with "_to" specified, then it gives deleted edge.
> {noformat}
> curl -XPOST localhost:9000/graphs/getEdges -H 'Content-Type: Application/json' -d '
> {
> "srcVertices": [{
> "serviceName": "s2graph-test",
> "columnName": "user_id",
> "id": "4c9343846613f66931000007"
> }],
> "steps": [{
> "step": [{
> "label": "path_friend",
> "direction": "out",
> "offset": 0,
> "limit": 10,
> "_to": "4cc8ad306899f56692000004"
> }]
> }]
> }
> '
> {noformat}
> I think after delete operation finished, there should be no edge left even with "_to" option.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)