Skip to content

Commit

Permalink
fix quotes not being escaped in fromSourceIds in neo4j csv
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Oct 21, 2024
1 parent df7a0b1 commit d737948
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 06_prepare_db_import/grebi_make_neo_csv/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,9 @@ fn write_edge(src_line:&[u8], edge:SlicedEdge, all_edge_props:&HashSet<String>,
} else {
edges_writer.write_all(&[(31 as u8)]).unwrap();
}
edges_writer.write_all(sid).unwrap();
edges_writer.write_all(
&get_escaped_value(JsonParser::parse(sid).string())
).unwrap();
});
edges_writer.write_all(b"\"").unwrap();

Expand Down

0 comments on commit d737948

Please sign in to comment.