[GH-ISSUE #92] Error running riab --cleanup #57

Closed
opened 2026-03-23 20:28:45 +00:00 by mirror · 1 comment
Owner

Originally created by @JensCardon on GitHub (Jul 29, 2024).
Original GitHub issue: https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/issues/92

Running the riab --cleanup command results in foreignkey vialation errors for Azure SQL Server Databases.

Possible fix: replace TRUNCATE by DELETE statements

Note: if not already implemented, work tables should be cleaned as well when running the cleanup command.

Originally created by @JensCardon on GitHub (Jul 29, 2024). Original GitHub issue: https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/issues/92 Running the riab --cleanup command results in foreignkey vialation errors for Azure SQL Server Databases. Possible fix: replace TRUNCATE by DELETE statements Note: if not already implemented, work tables should be cleaned as well when running the cleanup command.
mirror 2026-03-23 20:28:45 +00:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@pjlammertyn commented on GitHub (Sep 3, 2024):

This is incorrect!
Before the cleanup, riab disables all the constraints: https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/blob/main/src/riab/etl/sql_server/cleanup.py#L32

Riab is not aware if you add additional constraints.

<!-- gh-comment-id:2326132758 --> @pjlammertyn commented on GitHub (Sep 3, 2024): This is incorrect! Before the cleanup, riab disables all the constraints: https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/blob/main/src/riab/etl/sql_server/cleanup.py#L32 Riab is not aware if you add additional constraints.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RADar-AZDelta/archived-Rabbit-in-a-Blender#57
No description provided.