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

Lazily calculate value when using StyledTable::add_kv_row_if and predicate is true #1632

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

tillrohrmann
Copy link
Contributor

We use StyledTable::add_kv_row_if to check if a value exists. We should only access the value if the predicate passes. That's why this command changes the value parameter into a closure that is evaluated if the predicate is true.

This fixes #1631.

…icate is true

We use StyledTable::add_kv_row_if to check if a value exists. We should only access the
value if the predicate passes. That's why this command changes the value parameter into
a closure that is evaluated if the predicate is true.

This fixes restatedev#1631.
Copy link
Contributor

@AhmedSoliman AhmedSoliman left a comment

Choose a reason for hiding this comment

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

Great catch. Thanks @tillrohrmann for fixing this.

@tillrohrmann
Copy link
Contributor Author

Thanks for the review @AhmedSoliman. Merging now.

@tillrohrmann tillrohrmann merged commit 49163e5 into restatedev:main Jun 17, 2024
4 checks passed
@tillrohrmann tillrohrmann deleted the issues/1631 branch June 17, 2024 08:47
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.

restate dp get <lambda-deployment> panics
2 participants