Skip to content

Commit

Permalink
Debugging duplicated relations case.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-brandizi committed Aug 28, 2023
1 parent 21c5923 commit 1a2073e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,13 @@ public void accept ( Set<QuerySolution> relRecords )
.map ( Integer::valueOf )
.orElse ( -1 );

if ( ondexIds.contains ( relOndexId ) )
log.warn ( "==== DUPED ID {} IN PROCESSOR", relOndexId );
else
ondexIds.add ( relOndexId );
if ( relOndexId != -1 )
{
if ( ondexIds.contains ( relOndexId ) )
log.warn ( "==== DUPED ID {} IN HANDLER", relOndexId );
else
ondexIds.add ( relOndexId );
}

String type = pgRelation.getType ();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ public void process ( RdfDataManager rdfMgr, Object...opts )
.map ( Literal::getInt )
.orElse ( -1 );

if ( ondexIds.contains ( relOndexId ) )
log.warn ( "==== DUPED ID {} IN HANDLER", relOndexId );
else
ondexIds.add ( relOndexId );

if ( relOndexId != -1 )
{
if ( ondexIds.contains ( relOndexId ) )
log.warn ( "==== DUPED ID {} IN PROCESSOR", relOndexId );
else
ondexIds.add ( relOndexId );
}
solProc.accept ( qsol );
}
);
Expand Down

0 comments on commit 1a2073e

Please sign in to comment.