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

Remove search attributes with nil values #3903

Merged

Conversation

rodrigozhou
Copy link
Collaborator

What changed?
Remove search attributes keys with nil values.

Why?
Search attributes with nil values is the syntax to remove them. In practice, it just remove from the persistence map (ie., it won't store {"key": null} for example). Other than that, it was already working as expected.

How did you test it?
Launched server, ran workflow to set search attribute, and then set to nil or empty list. Checked the database to confirm the keys are not there.

Potential risks
No.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou requested a review from a team as a code owner February 3, 2023 21:03
@rodrigozhou rodrigozhou merged commit 20a5ce3 into temporalio:master Feb 3, 2023
@rodrigozhou rodrigozhou deleted the sql-sa-remove-nil-values branch February 3, 2023 22:58
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.

2 participants