Skip to content

Commit

Permalink
fixing error: temp_edges table already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Aug 14, 2024
1 parent 53bf528 commit 04c3fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kg_microbe_merge/utils/duckdb_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def duckdb_edges_merge(edges_file_list, output_file, batch_size=1000000):
# Create a temporary table for storing intermediate results
conn.execute(
"""
CREATE TABLE temp_edges AS
CREATE OR REPLACE TABLE temp_edges AS
SELECT DISTINCT subject, predicate, object
FROM combined_edges
"""
Expand Down

0 comments on commit 04c3fd8

Please sign in to comment.