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

MCOL-4741 Fix extentmap handling of string prefixes encoded as 64-bit integers #1999

Conversation

mariadb-SergeyZefirov
Copy link
Contributor

It so happened that string prefixes, encoded as integers for comparison, were compared in range merge operation (used primarily by cpimport) as signed integers, not unsigned ones (as memcmp/strcmp would).

This was the main reason of range values became messed up after cpimport of completely NULL column.

@mariadb-SergeyZefirov
Copy link
Contributor Author

Relevant task: https://jira.mariadb.org/browse/MCOL-4741

@tntnatbry
Copy link
Contributor

@mariadb-SergeyZefirov Code changes look good to me. However, we are missing test case for this. In https://jira.mariadb.org/browse/MCOL-4741 you have mentioned you were able to come up with a small reproducible test case. Can you please add it to MTR under mysql-test/columnstore/bugfixes ?

Also, once all changes are pushed, please also fix the original commit message. Right now, it contains some garbage text. As standard practice, we start the commit message with the MCOL number followed by the message. As reference, you can take a look at the existing commit history here: https://github.com/mariadb-corporation/mariadb-columnstore-engine/commits/develop

This is due to signedness in the string range comparison in extentmap
and unsignedness everywhere else.
@mariadb-SergeyZefirov mariadb-SergeyZefirov force-pushed the MCOL-4741-in-like-equal-returns-different-result branch from 4f08f82 to c58136a Compare July 2, 2021 16:28
@tntnatbry tntnatbry changed the title Fix extentmap handling of string prefixes encoded as 64-bit integers MCOL-4741 Fix extentmap handling of string prefixes encoded as 64-bit integers Jul 5, 2021
@tntnatbry tntnatbry merged commit 74bdf52 into mariadb-corporation:develop Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants