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

[#3521] fix(client-python): Fix hash() function with multiple variables issue in name_identitifer #3522

Merged
merged 2 commits into from
May 23, 2024

Conversation

xloya
Copy link
Contributor

@xloya xloya commented May 23, 2024

What changes were proposed in this pull request?

Fix hash() function in name_identifier.

Why are the changes needed?

Fix: #3521

How was this patch tested?

Add a ut.

@xloya
Copy link
Contributor Author

xloya commented May 23, 2024

@xunliu Could you take a look of this? Thanks.

@xloya xloya changed the title [#3521] fix(client-python): Fix hash() function in name_identitifer [#3521] fix(client-python): Fix hash() function with multiple variables issue in name_identitifer May 23, 2024
)
identifier_dict = {name_identifier1: "test1", name_identifier2: "test2"}

self.assertEqual("test1", identifier_dict.get(name_identifier1))
Copy link
Member

@xunliu xunliu May 23, 2024

Choose a reason for hiding this comment

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

I guess we could also add a assertNotEqual("test2", identifier_dict.get(name_identifier1))) in the use case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@xunliu xunliu left a comment

Choose a reason for hiding this comment

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

LGTM

@xloya Thank you fix this issue.

Copy link
Contributor

@jerryshao jerryshao left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @xloya for your fix.

@jerryshao jerryshao merged commit 1bb5f62 into apache:main May 23, 2024
9 checks passed
github-actions bot pushed a commit that referenced this pull request May 23, 2024
…bles issue in `name_identitifer` (#3522)

### What changes were proposed in this pull request?

Fix `hash()` function in `name_identifier`.

### Why are the changes needed?

Fix: #3521 

### How was this patch tested?

Add a ut.

---------

Co-authored-by: xiaojiebao <[email protected]>
diqiu50 pushed a commit to diqiu50/gravitino that referenced this pull request Jun 13, 2024
… variables issue in `name_identitifer` (apache#3522)

### What changes were proposed in this pull request?

Fix `hash()` function in `name_identifier`.

### Why are the changes needed?

Fix: apache#3521 

### How was this patch tested?

Add a ut.

---------

Co-authored-by: xiaojiebao <[email protected]>
@xloya xloya deleted the issue-3521 branch June 20, 2024 01:43
coolderli pushed a commit that referenced this pull request Dec 17, 2024
…bles issue in `name_identitifer` (#3522)

### What changes were proposed in this pull request?

Fix `hash()` function in `name_identifier`.

### Why are the changes needed?

Fix: #3521

### How was this patch tested?

Add a ut.

---------

Co-authored-by: xiaojiebao <[email protected]>
(cherry picked from commit 1bb5f62)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug report] When calling hash() function in name_identifier with python client throw an exception
3 participants