You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sql): add index on path columns (important for comparing ahbs) (#116)
* feat(sql): add index on path columns (important for comparing ahbs)
* try to crate unique index
* catch correct exception
def do_execute(self, cursor, statement, parameters, context=None):
> cursor.execute(statement, parameters)
E sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) UNIQUE constraint failed: ahb_hierarchy_materialized.path, ahb_hierarchy_materialized.pruefidentifikator, ahb_hierarchy_materialized.edifact_format_version
E [SQL: CREATE UNIQUE INDEX idx_hierarchy_path_per_ahb ON ahb_hierarchy_materialized (path, pruefidentifikator, edifact_format_version)]
E (Background on this error at: https://sqlalche.me/e/20/gkpj)
---------
Co-authored-by: Konstantin <[email protected]>
0 commit comments