Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 3

How come value changes are evaluated different with same results

Solved! Go to Solution.

Hi everyone!

 

Can someone explain why these two changes are evaluated as different types of changes? The ending results are clearly the same, the values were changed from `string` to `int`, but the top change shows the entire value '50' was replaced with 50, and the bottom change shows only the apostrophes were removed.

 

I'm guessing it has something to do with them having different datatypes? Like a tinyint compared to an int? I notice in this PR every value with 1 or 2 characters (50, 24, 4, etc) has the full value replaced, but every value with 3 characters (200, 400, 287, etc) shows only the apostrophes replaced.

 

Screen Shot 2019-11-01 at 2.51.33 PM.png

2 Replies
Solution
Pilot Lvl 3
Message 2 of 3

Re: How come value changes are evaluated different with same results

The diff machinery doesn't care about datatypes. Everying is text to it :D

 

This type of diff is called a 'word diff' and I guess the preimage needs to be 5 characters or longer for this part of the diff machinery to kick in. Though that's just a guess, I have no idea about the actual internals.

Copilot Lvl 2
Message 3 of 3

Re: How come value changes are evaluated different with same results

Thanks for the response @seveas. Makese sense it's all just evaluated as text and not actual types ha 

 

I assume there's some efficiency logic once the diff string hits different lengths, but I'm curious exactly what it might be, or why (if simply for machine efficiency).