Skip to content

Commit

Permalink
fix duplicated id edges
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Aug 7, 2024
1 parent a1be196 commit fbcb976
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 06_prepare_db_import/grebi_make_neo_csv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ fn write_node(src_line:&[u8], entity:&SlicedEntity, all_node_props:&HashSet<Stri
if row_prop.key == "grebi:type".as_bytes() {
continue; // already put in :LABEL column
}
if row_prop.key == "id".as_bytes() {
for val in row_prop.values.iter() {
write_id_row(val, id_edges_writer, &entity.id);
}
}
if header_prop.as_bytes() == row_prop.key {
if row_prop.key == "id".as_bytes() {
for val in row_prop.values.iter() {
write_id_row(val, id_edges_writer, &entity.id);
}
}
for val in row_prop.values.iter() {
if !wrote_any {
nodes_writer.write_all(b"\"").unwrap();
Expand Down

0 comments on commit fbcb976

Please sign in to comment.