ldbc / ldbc_snb_interactive_v1_impls

Reference implementations for LDBC Social Network Benchmark's Interactive workload.
https://ldbcouncil.org/benchmarks/snb-interactive
Apache License 2.0
97 stars 85 forks source link

implement custom multi-hop cypher query on neo4j implemention #354

Closed vege-yummy closed 1 year ago

vege-yummy commented 1 year ago

Hi,I'm using LDBC Neo4j implementation to test the neo4j database in a course project. Now I want to implement some custom and more complex cypher queries(multi-hop). And add it to the driver workload. Like adding a ldbc.snb.interactive.LdbcQuery15.I can't find source code in this project to modify.. Could you please tell me how to do that?

szarnyasg commented 1 year ago

Hello @vege-yummy, use the v1-dev branch of the driver: https://github.com/ldbc/ldbc_snb_interactive_driver/tree/v1-dev

Once you updated the code, you have to Maven install it with the driver repository's scripts/install.sh script. Then, you can use it from this repository (the implementations).

vege-yummy commented 1 year ago

Thank you very much! After I run the scripts/install.sh , Can I use it from this repository (the implementations) directly? Is there anything else I should modify? I have modified something but it doesn't seem to work. (Sorry I'm not very familiar with maven project)

image
szarnyasg commented 1 year ago

I'd recommend to bump the version to 1.3.0-SNAPSHOT. If you use a stable version like 1.2.0, the other project will not notice that it's changed. So change the instances of 1.2.0 to 1.3.0-SNAPSHOT in both the driver code and in the implementations code.

For the implementations, don't forget to also change the branch to v1-dev.

vege-yummy commented 1 year ago

There are many problems after I change 1.2.0 to 1.3.0

image image image
vege-yummy commented 1 year ago

It seems to work! Thank you !

szarnyasg commented 1 year ago

Don’t forget to include SNAPSHOT In the version number - that allows Maven to notice the changes upon rebuilding the driver project.

On Tue, 20 Dec 2022 at 07:18, vege-yummy @.***> wrote:

It seems to work! Thank you !

— Reply to this email directly, view it on GitHub https://github.com/ldbc/ldbc_snb_interactive_impls/issues/354#issuecomment-1358890722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKWPMIFUJDECMXDJAV3Q4DWOFFU3ANCNFSM6AAAAAATDJVHUI . You are receiving this because you commented.Message ID: @.***>