-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added parquet tinysnb test and parser adjustments
- Loading branch information
Showing
14 changed files
with
340 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
COPY person FROM "dataset/tinysnb/vPerson.csv" (HeaDER=true, deLim=','); | ||
COPY person FROM "dataset/tinysnb/vPerson.csv" (HEADER=true, deLim=','); | ||
COPY organisation FROM "dataset/tinysnb/vOrganisation.csv"; | ||
COPY movies FROM "dataset/tinysnb/vMovies.csv"; | ||
COPY knows FROM "dataset/tinysnb/eKnows.csv"; | ||
COPY studyAt FROM "dataset/tinysnb/eStudyAt.csv" (HEADeR=true); | ||
COPY studyAt FROM "dataset/tinysnb/eStudyAt.csv" (HEADER=true); | ||
COPY workAt FROM "dataset/tinysnb/eWorkAt.csv" | ||
COPY meets FROM "dataset/tinysnb/eMeets.csv" | ||
COPY marries FROM "dataset/tinysnb/eMarries.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-GROUP DemoDBTest | ||
-DATASET PARQUET CSV_TO_PARQUET(demo-db/csv) | ||
-DATASET PARQUET demo-db/parquet | ||
|
||
-- | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
test/test_files/ldbc/ldbc-interactive/interactive-short-parquet.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
-GROUP EndToEndReadLargeListsTest | ||
-DATASET PARQUET CSV_TO_PARQUET(read-list-tests/large-list) | ||
|
||
-- | ||
|
||
-CASE LargeAdjListTestParquet | ||
|
||
-NAME NodeP0 | ||
-QUERY MATCH (a:person)-[:knows]->(b:person) WHERE a.ID = 0 RETURN COUNT(*) | ||
-ENUMERATE | ||
---- 1 | ||
5001 | ||
|
||
-NAME NodeP1 | ||
-QUERY MATCH (a:person)-[:knows]->(b:person) WHERE a.ID = 1 RETURN b.ID | ||
-ENUMERATE | ||
---- 1 | ||
5000 | ||
|
||
-NAME NodeP5500 | ||
-QUERY MATCH (a:person)-[:knows]->(b:person) WHERE a.ID = 5500 RETURN b.ID | ||
-ENUMERATE | ||
---- 0 | ||
|
||
-NAME EdgeID | ||
-QUERY MATCH (a:person)-[r:knows]->(b:person) WHERE a.ID = 5000 RETURN ID(r) | ||
-ENUMERATE | ||
---- 1 | ||
1:10000 | ||
|
||
-NAME CrossProduct1 | ||
-QUERY MATCH (a:person), (b:person) RETURN COUNT(*) | ||
-PARALLELISM 2 | ||
-ENUMERATE | ||
---- 1 | ||
36000000 | ||
|
||
-NAME CrossProduct | ||
-QUERY MATCH (a:person) WITH AVG(a.ID) AS s MATCH (b:person) WHERE s > b.ID RETURN COUNT(*) | ||
-PARALLELISM 8 | ||
-ENUMERATE | ||
---- 1 | ||
3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# FIXME: this test is segfaulting | ||
-GROUP ShortestPathTest | ||
-SKIP | ||
-DATASET PARQUET CSV_TO_PARQUET(shortest-path-tests) | ||
|
||
-- | ||
|
||
-CASE BfsParquet | ||
|
||
-NAME SingleSourceAllDestinationsSSP | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..30]->(b:person) WHERE a.fName = 'Alice' RETURN a.fName, b.fName, r | ||
---- 7 | ||
Alice|Bob|[0:0,1:0,0:1] | ||
Alice|Carol|[0:0,1:1,0:2] | ||
Alice|Dan|[0:0,1:2,0:3] | ||
Alice|Elizabeth|[0:0,1:0,0:1,1:6,0:4] | ||
Alice|Farooq|[0:0,1:0,0:1,1:6,0:4,1:13,0:5] | ||
Alice|Greg|[0:0,1:0,0:1,1:6,0:4,1:14,0:6] | ||
Alice|Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|[0:0,1:0,0:1,1:6,0:4,1:15,0:7] | ||
|
||
-NAME AllSourcesSingleDestinationQuery | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..30]->(b:person) WHERE b.fName = 'Alice' RETURN a.fName, b.fName, r | ||
---- 6 | ||
Bob|Alice|[0:0,1:3,0:1] | ||
Carol|Alice|[0:0,1:7,0:2] | ||
Dan|Alice|[0:0,1:10,0:3] | ||
Elizabeth|Alice|[0:0,1:20,0:7,1:15,0:4] | ||
Farooq|Alice|[0:0,1:20,0:7,1:17,0:5] | ||
Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|Alice|[0:0,1:20,0:7] | ||
|
||
-NAME SingleSourceWithAllProperties | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..30]->(b:person) WHERE a.fName = 'Alice' RETURN length(r), b, a | ||
---- 7 | ||
1|(label:person, 0:1, {ID:2, fName:Bob, gender:2, isStudent:True, isWorker:False, age:30, eyeSight:5.100000, birthdate:1900-01-01, registerTime:2008-11-03 15:25:30.000526, lastJobDuration:10 years 5 months 13:00:00.000024, workedHours:[12,8], usedNames:[Bobby], courseScoresPerTerm:[[8,9],[9,10]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
1|(label:person, 0:2, {ID:3, fName:Carol, gender:1, isStudent:False, isWorker:True, age:45, eyeSight:5.000000, birthdate:1940-06-22, registerTime:1911-08-20 02:32:21, lastJobDuration:48:24:11, workedHours:[4,5], usedNames:[Carmen,Fred], courseScoresPerTerm:[[8,10]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
1|(label:person, 0:3, {ID:5, fName:Dan, gender:2, isStudent:False, isWorker:True, age:20, eyeSight:4.800000, birthdate:1950-07-23, registerTime:2031-11-30 12:25:30, lastJobDuration:10 years 5 months 13:00:00.000024, workedHours:[1,9], usedNames:[Wolfeschlegelstein,Daniel], courseScoresPerTerm:[[7,4],[8,8],[9]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
2|(label:person, 0:4, {ID:7, fName:Elizabeth, gender:1, isStudent:False, isWorker:True, age:20, eyeSight:4.700000, birthdate:1980-10-26, registerTime:1976-12-23 11:21:42, lastJobDuration:48:24:11, workedHours:[2], usedNames:[Ein], courseScoresPerTerm:[[6],[7],[8]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
3|(label:person, 0:5, {ID:8, fName:Farooq, gender:2, isStudent:True, isWorker:False, age:25, eyeSight:4.500000, birthdate:1980-10-26, registerTime:1972-07-31 13:22:30.678559, lastJobDuration:00:18:00.024, workedHours:[3,4,5,6,7], usedNames:[Fesdwe], courseScoresPerTerm:[[8]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
3|(label:person, 0:6, {ID:9, fName:Greg, gender:2, isStudent:False, isWorker:False, age:40, eyeSight:4.900000, birthdate:1980-10-26, registerTime:1976-12-23 04:41:42, lastJobDuration:10 years 5 months 13:00:00.000024, workedHours:[1], usedNames:[Grad], courseScoresPerTerm:[[10]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
3|(label:person, 0:7, {ID:10, fName:Hubert Blaine Wolfeschlegelsteinhausenbergerdorff, gender:2, isStudent:False, isWorker:True, age:83, eyeSight:4.900000, birthdate:1990-11-27, registerTime:2023-02-21 13:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,11,12,3,4,5,6,7], usedNames:[Ad,De,Hi,Kye,Orlan], courseScoresPerTerm:[[7],[10],[6,7]]})|(label:person, 0:0, {ID:0, fName:Alice, gender:1, isStudent:True, isWorker:False, age:35, eyeSight:5.000000, birthdate:1900-01-01, registerTime:2011-08-20 11:25:30, lastJobDuration:3 years 2 days 13:02:00, workedHours:[10,5], usedNames:[Aida], courseScoresPerTerm:[[10,8],[6,7,8]]}) | ||
|
||
-NAME SingleSourceSingleDestination | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..30]->(b:person) WHERE a.fName = 'Alice' AND b.fName = 'Bob' RETURN a.fName, b.fName, length(r) | ||
---- 1 | ||
Alice|Bob|1 | ||
|
||
-NAME SingleSourceAllDestinations2 | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..2]->(b:person) WHERE a.fName = 'Elizabeth' RETURN a.fName, b.fName, r | ||
---- 5 | ||
Elizabeth|Alice|[0:4,1:15,0:7,1:20,0:0] | ||
Elizabeth|Dan|[0:4,1:15,0:7,1:21,0:3] | ||
Elizabeth|Farooq|[0:4,1:13,0:5] | ||
Elizabeth|Greg|[0:4,1:14,0:6] | ||
Elizabeth|Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|[0:4,1:15,0:7] | ||
|
||
-NAME SingleSourceUnreachableDestination | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..30]->(b:person) WHERE a.fName = 'Alice' AND b.fName = 'Alice11' RETURN a.fName, b.fName, r | ||
---- 0 | ||
|
||
|
||
-NAME MultipleSrcMultipleDstQuery | ||
-QUERY MATCH (a:person)-[r:knows* SHORTEST 1..10]->(b:person) WHERE a.isStudent = true AND b.isWorker = true RETURN a.fName, b.fName, length(r) | ||
---- 12 | ||
Alice|Carol|1 | ||
Alice|Dan|1 | ||
Alice|Elizabeth|2 | ||
Alice|Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|3 | ||
Bob|Carol|1 | ||
Bob|Dan|1 | ||
Bob|Elizabeth|1 | ||
Bob|Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|2 | ||
Farooq|Carol|3 | ||
Farooq|Dan|2 | ||
Farooq|Elizabeth|1 | ||
Farooq|Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|1 | ||
|
||
-NAME SSPWithExtend | ||
-QUERY MATCH (c:person)<-[:knows* SHORTEST 1..30]-(a:person)-[r:knows* SHORTEST 1..30]->(b:person), (b)-[:knows]->(c) WHERE a.fName = 'Alice' AND b.ID < 6 AND c.ID > 5 RETURN a.fName, b.fName, c.fName | ||
---- 1 | ||
Alice|Bob|Elizabeth | ||
|
||
-NAME MultiPart | ||
-QUERY MATCH (a)-[r:knows* SHORTEST 1..30]->(b:person) WHERE b.ID > 6 AND a.fName = 'Alice' WITH a, b, r MATCH (c:person)<-[:knows]-(a:person) RETURN b.fName, length(r), COUNT(*) | ||
---- 4 | ||
Elizabeth|2|3 | ||
Farooq|3|3 | ||
Greg|3|3 | ||
Hubert Blaine Wolfeschlegelsteinhausenbergerdorff|3|3 |
Oops, something went wrong.