Skip to content

Commit

Permalink
dd
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei1949 committed Sep 22, 2023
1 parent 5972ccc commit 4a21447
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/hqps-db-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,17 @@ jobs:
eval ${cmd}
done
# test movie graph, 8,9,10 are not supported now
for i in 1 2 3 4 5 6 7 11 12 13 14 15;
do
cmd="./load_plan_and_gen.sh -e=hqps -i=../tests/hqps/queries/movie/query${i}.cypher -w=/tmp/codgen/"
cmd=${cmd}" -o=/tmp/plugin --ir_conf=${GS_TEST_DIR}/flex/ldbc-sf01-long-date/engine_config.yaml "
cmd=${cmd}" --graph_schema_path=${GS_TEST_DIR}/flex/ldbc-sf01-long-date/movie_schema.yaml"
cmd=${cmd}" --gie_home=${GIE_HOME}"
echo $cmd
eval ${cmd}
done
- name: Run End-to-End cypher adhoc query test
env:
GS_TEST_DIR: ${{ github.workspace }}/gstest
Expand Down
2 changes: 1 addition & 1 deletion flex/tests/hqps/queries/movie/query11.cypher
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MATCH (tom:Person {name: 'Tom Hanks'})-[r:ACTED_IN]->(movie:Movie)
RETURN tom.id AS personId, movie.title as movieTitle, movie.released as movieReleased;
RETURN tom.id AS personId, movie.title as movieTitle, movie.release as movieReleased;
2 changes: 1 addition & 1 deletion flex/tests/hqps/queries/movie/query2.cypher
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MATCH (cloudAtlas:Movie {title: "Cloud Atlas"}) RETURN cloudAtlas.tagline AS tagline, cloudAtlas.released AS releasedYear,cloudAtlas.title AS tile;
MATCH (cloudAtlas:Movie {title: "Cloud Atlas"}) RETURN cloudAtlas.tagline AS tagline, cloudAtlas.release AS releasedYear,cloudAtlas.title AS tile;
2 changes: 1 addition & 1 deletion flex/tests/hqps/queries/movie/query4.cypher
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MATCH (nineties:Movie) WHERE nineties.released > 1990 AND nineties.released < 2000 RETURN nineties.title
MATCH (nineties:Movie) WHERE nineties.release > 1990 AND nineties.release < 2000 RETURN nineties.title
2 changes: 1 addition & 1 deletion flex/tests/hqps/queries/movie/query5.cypher
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MATCH (tom:Person {name: "Tom Hanks"})-[:ACTED_IN]->(tomHanksMovies)
RETURN tom.id AS personId, tom.born AS bornYear, tomHanksMovies.title AS movieTitle, tomHanksMovies.released AS releaseYear;
RETURN tom.id AS personId, tom.born AS bornYear, tomHanksMovies.title AS movieTitle, tomHanksMovies.release AS releaseYear;
2 changes: 1 addition & 1 deletion flex/tests/hqps/queries/movie/query7.cypher
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
MATCH (tom:Person {name:"Tom Hanks"})-[:ACTED_IN]->(m)<-[:ACTED_IN]-(coActors)
RETURN m.title AS movieTitle, m.released AS releasedYear, coActors.name AS coActor
RETURN m.title AS movieTitle, m.release AS releasedYear, coActors.name AS coActor

0 comments on commit 4a21447

Please sign in to comment.