memgraph/tests/public_benchmark/ldbc/test_cases/queries/update_2.cyp
Teon Banek 26297ca641 ldbc: Extract update queries
Summary:
Convert update queries to oC supported by MG
Ignore ve2 in ldbc

Reviewers: buda, mislav.bradac, florijan

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D733
2017-09-01 14:13:04 +02:00

13 lines
671 B
Plaintext

// Parameters are read from an arbitrary line in ldbc_snb_datagen/social_network/updateStream_0_0_forum.csv
// First 3 columns are skipped, then read in order and passed as arguments.
// Missing columns are filled with ""
// The easiest way is to run QueryTester and see the parameters.
// LdbcUpdate2AddPostLike{personId=26388279073665, postId=1236953235741, creationDate=Thu Sep 13 11:36:22 CEST 2012}
// Date is converted to the number of milliseconds since January 1, 1970, 00:00:00 GMT
// Add a Like to a Post of the social network.
MATCH (p:Person {id:"26388279073665"}),
(m:Post {id:"1236953235741"})
CREATE (p)-[:LIKES {creationDate:1347528982194}]->(m);