File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/scala/ldbc/snb/datagen/factors Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,18 @@ object FactorGenerationStage extends DatagenStage with Logging {
421
421
)
422
422
.sort($" Person1Id" , $" Person2Id" )
423
423
.limit(10000 )
424
+ },
425
+ " sameUniversityKnows" -> Factor (PersonKnowsPersonType , PersonStudyAtUniversityType ) {
426
+ case Seq (personKnowsPerson, studyAt) =>
427
+ undirectedKnows(personKnowsPerson)
428
+ .join(studyAt.as(" studyAt1" ), $" studyAt1.personId" === $" knows.person1Id" )
429
+ .join(studyAt.as(" studyAt2" ), $" studyAt2.personId" === $" knows.person2Id" )
430
+ .where($" studyAt1.universityId" === $" studyAt2.universityId" )
431
+ .select(
432
+ $" knows.person1Id" .as(" person1Id" ),
433
+ $" knows.person2Id" .as(" person2Id" )
434
+ )
435
+ .distinct()
424
436
}
425
437
)
426
438
}
You can’t perform that action at this time.
0 commit comments