Skip to content

Commit a6e9d15

Browse files
committed
Add personFirstName factor table
1 parent 5506f64 commit a6e9d15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,13 @@ object FactorGenerationStage extends DatagenStage with Logging {
461461
)
462462
.where($"creationDate" < $"deletionDate")
463463
.coalesce(size)
464+
},
465+
"personFirstNames" -> Factor(PersonType) { case Seq(person) =>
466+
frequency(
467+
person,
468+
value = $"id",
469+
by = Seq($"firstName")
470+
)
464471
}
465472
)
466473
}

0 commit comments

Comments
 (0)