Skip to content

Commit 74a7b10

Browse files
committed
Add missing notation for columns. Fixes #352
1 parent 4002a8a commit 74a7b10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/scala/ldbc/snb/datagen/factors/FactorGenerationStage.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ object FactorGenerationStage extends DatagenStage with Logging {
8282
personKnowsPerson
8383
.alias("Knows")
8484
.join(persons.cache().as("Person1"), $"Person1.id" === $"Knows.Person1Id")
85-
.join(cities.cache().as("City1"), $"City1.id" === "Person1.LocationCityId")
85+
.join(cities.cache().as("City1"), $"City1.id" === $"Person1.LocationCityId")
8686
.join(persons.as("Person2"), $"Person2.id" === $"Knows.Person2Id")
87-
.join(cities.as("City2"), $"City2.id" === "Person2.LocationCityId")
87+
.join(cities.as("City2"), $"City2.id" === $"Person2.LocationCityId")
8888
.where($"City1.id" < $"City2.id"),
8989
value = $"*",
9090
by = Seq($"City1.id", $"City2.id", $"City1.name", $"City2.name")
@@ -104,11 +104,11 @@ object FactorGenerationStage extends DatagenStage with Logging {
104104
personKnowsPerson
105105
.alias("Knows")
106106
.join(persons.cache().as("Person1"), $"Person1.id" === $"Knows.Person1Id")
107-
.join(cities.cache().as("City1"), $"City1.id" === "Person1.LocationCityId")
108-
.join(countries.cache().as("Country1"), $"Country1.id" === "City1.PartOfPlaceId")
107+
.join(cities.cache().as("City1"), $"City1.id" === $"Person1.LocationCityId")
108+
.join(countries.cache().as("Country1"), $"Country1.id" === $"City1.PartOfPlaceId")
109109
.join(persons.as("Person2"), $"Person2.id" === $"Knows.Person2Id")
110-
.join(cities.as("City2"), $"City2.id" === "Person2.LocationCityId")
111-
.join(countries.as("Country2"), $"Country2.id" === "City2.PartOfPlaceId")
110+
.join(cities.as("City2"), $"City2.id" === $"Person2.LocationCityId")
111+
.join(countries.as("Country2"), $"Country2.id" === $"City2.PartOfPlaceId")
112112
.where($"Country1.id" < $"Country2.id"),
113113
value = $"*",
114114
by = Seq($"Country1.id", $"Country2.id", $"Country1.name", $"Country2.name")

0 commit comments

Comments
 (0)