Skip to content

Commit

Permalink
Fix inconsistency between rel-types and schema
Browse files Browse the repository at this point in the history
Which would eventually lead to restore failures.
  • Loading branch information
FlorentinD committed Oct 10, 2023
1 parent 6c954c5 commit eaa3018
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.neo4j.gds.RelationshipType;
import org.neo4j.gds.annotation.ValueClass;
import org.neo4j.gds.api.GraphStore;
import org.neo4j.gds.api.schema.Direction;
import org.neo4j.gds.api.schema.GraphSchema;
import org.neo4j.gds.api.schema.MutableGraphSchema;
import org.neo4j.gds.api.schema.MutableNodeSchema;
Expand Down Expand Up @@ -186,9 +185,6 @@ public static MutableGraphSchema filterSchema(GraphSchema inputGraphSchema, Node
.relationshipSchema()
.filter(filteredRelationshipTypes)
);
if (relationshipSchema.availableTypes().isEmpty()) {
relationshipSchema.addRelationshipType(RelationshipType.ALL_RELATIONSHIPS, Direction.DIRECTED);
}

return MutableGraphSchema.of(nodeSchema, relationshipSchema, Map.of());
}
Expand Down

0 comments on commit eaa3018

Please sign in to comment.