Skip to content
/ server Public

MDEV-38180: Add xxh32(), xxh3(), and xxh3_128() SQL functions#4741

Open
monthdev wants to merge 3 commits intoMariaDB:mainfrom
monthdev:MDEV-38180
Open

MDEV-38180: Add xxh32(), xxh3(), and xxh3_128() SQL functions#4741
monthdev wants to merge 3 commits intoMariaDB:mainfrom
monthdev:MDEV-38180

Conversation

@monthdev
Copy link

@monthdev monthdev commented Mar 6, 2026

Address MDEV-38180.

There is already an open PR for this here #4500. I am just assuming it was dropped and reiterating with a narrower scope.

@CLAassistant
Copy link

CLAassistant commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Mar 6, 2026
Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a preliminary review. Thank you for your contribution.

I think you need to figure out what is the fate of the other PR. As yours seems to mostly be a fork of it (I didn't compare, but it looks very similar). I will add Daniel as a reviewer to this one so he can work on that.

Should we decide to go ahead, please make sure your commit message must be present and must follow CODING_STANDARDS.md

@gkodinov gkodinov requested a review from grooverdan March 6, 2026 10:25
@monthdev monthdev changed the title MDEV-38180: Add XXH32() and XXH3() SQL functions MDEV-38180: Add xxh32(), xxh3(), and xxh3_128() SQL functions Mar 7, 2026
@monthdev
Copy link
Author

monthdev commented Mar 7, 2026

@gkodinov I appreciate the review! In my latest commit, I

  • (re)implemented xxh32(), xxh3(), and xxh3_128()
  • changed SQL API to return hex string
  • normalized input to stable charset before hashing
  • added MTR coverage for xxh3_128() and charset consistency
  • cleaned up coding style.

Please let me know of any other problems or nits!

@monthdev monthdev requested a review from gkodinov March 7, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

3 participants