-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
Why DOLT_DIFF_SUMMARY shows record without data change and schema change? #8907
Comments
Interesting. This means the actual hash of the table is different but Dolt can't display the change. There are some "hidden" elements in table schema called tags. Is your database able to be shared? |
Hey Mateusz! I agree this is confusing, and we should figure out what's happening. I have a theory what might be causing this. Does your |
We released v.1.50.1 today, which should have a fix for this issue. Please let us know if the issue persists after updating. |
Hi :) Thanks for quick response on that. It seems that v.1.50.1 resolve issue for newly created branches. Update was done via rebuilding the Docker image with newer version of Dolt, but volume data was preserved. I followed the path of creating a new branch, adding some change and then running But when I'm querying the old "commits", for example the same from the first post of this issue, the results are still the same. Maybe it's ok and fix is only for "future" history? |
That's odd. The change only affects how the data is read, not how it's stored, so it shouldn't matter whether the branch was created before or after the fix. However, the code path for accessing table history is slightly different from the code path for accessing the live data on a branch, so it's possible that could be affecting things. Can you give me an example of a query that is now working, alongside an example query that's still broken for you? |
@mateusz-lachowski-codilime , thanks for using Dolt! We'd love to learn more about your use case. Feel free to email me or swing by our Discord if you want to share. |
Dolt version: v1.47.1
I've encounter following issue using
select * from dolt_diff_summary(...)
because in some cases it's returning records with bothdata_change
andschema_change
set tofalse
. For example:But other methods return "proper" data:
And dolt diff return nothing for specified table, either on main branch activated or new branch.
I've found out that this is happening especially when comparing commit hashes from two different branches. In above case,
5ps
commit is the last commit onmain
branch and76q
is the first and only commit on newly created branch out ofmain
. When I'm comparing two commits from the same branch results are correct.Expected results: all of the results from calling
dolt_diff_summary
should be with eitherdata_change
orschema_change
flag set to true or not shown at all.The text was updated successfully, but these errors were encountered: