Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stricter Conflict Detection modes #7681

Open
timsehn opened this issue Apr 2, 2024 · 0 comments
Open

Stricter Conflict Detection modes #7681

timsehn opened this issue Apr 2, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request merge Issues relating to merge version control

Comments

@timsehn
Copy link
Sponsor Contributor

timsehn commented Apr 2, 2024

A customer uses custom merge logic because Dolt's conflict detection logic is too lenient. Dolt does it's best to merge as much as it can conflict-free. But this strategy is not apprproate for all use cases.

We should have different conflict detection modes.

  1. Schema/Data - Dolt will only merge data changes or schema changes, not both. If a schema change and a data change are made to the same table, a conflict is thrown.
  2. No schema - Any modifications to schema on the same table are treated as conflicts.
  3. No data - Any modifications to data on the same table are conflicts.
  4. No row merge - Any modifications to the same primary key are treated as conflicts even if the cells that were updated in the row are different.

I'm sure we can think of more.

Potentially this should be controlled by a system variable that can be set globally or within a session.

@timsehn timsehn added enhancement New feature or request merge Issues relating to merge version control labels Apr 2, 2024
@nicktobey nicktobey self-assigned this Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request merge Issues relating to merge version control
Projects
None yet
Development

No branches or pull requests

2 participants