Skip to content

Commit

Permalink
improve: Log invalid edges
Browse files Browse the repository at this point in the history
  • Loading branch information
itinycheng committed Nov 14, 2023
1 parent cac4fc1 commit db1538a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ protected void execute(RowData record, JanusGraphTransaction transaction) {
private void createEdge(Object[] values, JanusGraphTransaction transaction) {
Vertex inV = inVertexSearcher.search(values, transaction);
Vertex outV = outVertexSearcher.search(values, transaction);
if (inV == null || outV == null) {
LOG.debug("in vertex: {} and out vertex: {} must be present", inV, outV);
return;
}

Edge created = outV.addEdge(values[labelIndex].toString(), inV);
for (int i = 0; i < values.length; i++) {
if (!nonWriteColumnIndexes.contains(i)) {
Expand Down

0 comments on commit db1538a

Please sign in to comment.