Skip to content

Commit f5afc50

Browse files
committed
filter attributes
1 parent 6470831 commit f5afc50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/scala/ldbc/snb/datagen/transformation/transform/RawToBiTransform.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ case class RawToBiTransform(mode: BI, simulationStart: Long, simulationEnd: Long
2626
case _ => throw new IllegalStateException("Unrecognized partition key")
2727
}
2828

29-
private def notOneToManyEdge(entityType: EntityType): Boolean = entityType match {
29+
private def notDerived(entityType: EntityType): Boolean = entityType match {
3030
case Edge(_, _, _, OneN, _, _, _) => false
3131
case Edge(_, _, _, NOne, _, _, _) => false
32+
case Attr(_, _, _, _) => false
3233
case _ => true
3334
}
3435

@@ -72,7 +73,7 @@ case class RawToBiTransform(mode: BI, simulationStart: Long, simulationEnd: Long
7273
tpe -> BatchedEntity(
7374
RawToInteractiveTransform.snapshotPart(tpe, v, bulkLoadThreshold, filterDeletion = false),
7475
Some(Batched(insertBatchPart(tpe, v, bulkLoadThreshold, simulationEnd), Seq("batch_id"), Seq($"creationDate"))),
75-
if (notOneToManyEdge(tpe) && (keepImplicitDeletes || v.columns.contains("explicitlyDeleted")))
76+
if (notDerived(tpe) && (keepImplicitDeletes || v.columns.contains("explicitlyDeleted")))
7677
Some(Batched(deleteBatchPart(tpe, v, bulkLoadThreshold, simulationEnd), Seq("batch_id"), Seq($"deletionDate")))
7778
else
7879
None

0 commit comments

Comments
 (0)