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
Identical schema alterations results in two different columns with same tag
error on merge
#2335
Comments
This is probably a bug, but we need some more information. Can you walk us through the steps that reproduce the problem? |
table rows:
table rows:
|
Any update ? |
Hi @liuqianhong6007, The bug here is that error message: This appears to be a bug in how we merge schemas. Dolt should consider the two tables, after identical schema changes, to be the same, but doesn't. I'm going to have someone look into this. In the meantime, please make the schema change before branching, and your merge should work and pick up the data conflict as expected. One additional note: you should generally use |
two different columns with same tag
error on merge
Thanks for your reply.
It indeed works if there are no schema change, but it does't suit my case because there are no acknowledge of schema change between two independent branches both based on main. Unless I fetch the latest main branch before every merging ?...
In the beginning, I definitely followed the the official docs to use dolt, but sometimes it didn't work, and there are some issues about dolt_FUNCTION, and it even made my working set dirty. Then I found two blog dolt sql-server Concurrency and Merging and Resolving Conflicts Programmatically with SQL. It describes what I want. The idea of wrapping complex logic into well-known function like git is great and the dolt_FUNCTION is in development. I choose the detached head mode instead of using dolt_FUNCTION due to the deadline of my work. |
The merge workflow has been improved a lot lately. You should not run into these issues again. |
Using detached head mode, I try to merge branch but get an error two different columns with the same tag.
Executing SELECT * FROM dolt_conflicts get no rows.
And executing SELECT * FROM dolt_conflicts_mycolor also get no rows.
And in non detached head mode, it seems the same.
In fact the branch feature3 and main should have a conflict of column float_val
So is this a bug or is there problem of my operation ?
The text was updated successfully, but these errors were encountered: