Skip to content

Strategy merge and delete+insert: DestinationSchemaTampered: Schema _76107128 content was changed - by a loader or by destination code #14

@amotl

Description

@amotl

Problem

When testing ingestr, this error happens when validating the merge and delete+insert strategies.

time pytest -vvv -k "test_merge and duck and crate"
time pytest -vvv -k "test_delete_insert_without_primary_key and duck and crate"
dlt.pipeline.exceptions.PipelineStepFailed: Pipeline execution failed at stage load when processing package 1751728597.227432 with exception:

<class 'dlt.common.destination.exceptions.DestinationSchemaTampered'>
Schema _761071286cae94c12b6cab446cf1lfnocg0a78ff29114db2c3db51e80e5c296 content was changed - by a loader or by destination code - from the moment it was retrieved by load package. Such schema cannot reliably be updated nor saved. Current version hash: i03i7zMUw3ZWMiIn099PtaHPGdyp9YDZ5SZSiUvIctM= != stored version hash 4qvLn3v+a0GxHMr1SrjBGUra7CKttG/+wTHhu87OjUs=. If you are using destination client directly, without storing schema in load package, you should first save it into schema storage. You can also use schema._bump_version() in test code to remove modified flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions