Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Fix merge of data for dlt
Resolve issue with dlt data not being merged for data_id

Fix COG-505
  • Loading branch information
dexters1 committed Dec 5, 2024
commit 378e7b81a53423048bc6ec29e2d7fe968ab757b6
2 changes: 1 addition & 1 deletion cognee/tasks/ingestion/ingest_data_with_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def ingest_data_with_metadata(data: Any, dataset_name: str, user: User):
destination = destination,
)

@dlt.resource(standalone=True, merge_key="id")
@dlt.resource(standalone=True, primary_key="id", merge_key="id")
async def data_resources(file_paths: str, user: User):
for file_path in file_paths:
with open(file_path.replace("file://", ""), mode="rb") as file:
Expand Down