The Wayback Machine - http://web.archive.org/web/20200628095946/https://github.com/vesoft-inc/nebula/issues/1281
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

provide hash function for the go/python/java/c++ client #1281

Open
whitewum opened this issue Nov 17, 2019 · 1 comment
Open

provide hash function for the go/python/java/c++ client #1281

whitewum opened this issue Nov 17, 2019 · 1 comment
Assignees

Comments

@whitewum
Copy link
Contributor

@whitewum whitewum commented Nov 17, 2019

Is your feature request related to a problem? Please describe.

Ther is no explanation about which hash function used in console. I've to look up the Nebula C++ code, and guess for my language.

> yield hash("mike")

So when I use golang client to insert vertex id(vid), I don't know which hash function to use (I think in golang, it is murmurhash2A)

Describe the solution you'd like

I hope Nebula can provide a nebula::util::hash

Describe alternatives you've considered

You can tell user the hash function (murmurhash, m, r, seed... ), and let user search for their own language packages. But that's a really really bad idea. It takes me half hour to check my golang hash is consistent with nebula hash ( I don't think anyone else wants to do this search).

Additional context

Add any other context or screenshots about the feature request here.

@whitewum
Copy link
Contributor Author

@whitewum whitewum commented Nov 17, 2019

I hope you can provide it in the next release. It's simple and useful.

@jude-zhu jude-zhu added this to the R201910_RC3 milestone Dec 11, 2019
@jude-zhu jude-zhu removed this from the R201910_RC3 milestone Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.