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

fix(functions): manually drop state in function eval_aggr function #5080

Merged
merged 5 commits into from
Apr 28, 2022

Conversation

sundy-li
Copy link
Member

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

Summary about this PR

Changelog

  • Bug Fix

Related Issues

Continue #5056

@vercel
Copy link

vercel bot commented Apr 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) Apr 28, 2022 at 1:35PM (UTC)

@mergify
Copy link
Contributor

mergify bot commented Apr 28, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

@mergify mergify bot added the pr-bugfix this PR patches a bug in codebase label Apr 28, 2022
@sundy-li sundy-li requested a review from dantengsky April 28, 2022 07:03
@BohuTANG
Copy link
Member

@mergify update

@mergify
Copy link
Contributor

mergify bot commented Apr 28, 2022

update

✅ Branch has been successfully updated

@sundy-li sundy-li marked this pull request as draft April 28, 2022 09:53
@sundy-li sundy-li marked this pull request as ready for review April 28, 2022 14:48
@sundy-li sundy-li requested a review from zhang2014 April 28, 2022 14:48
@BohuTANG BohuTANG merged commit 0e63755 into databendlabs:main Apr 28, 2022
Ok(builder.to_column())
let result = apply();

if f.need_manual_drop_state() {
Copy link
Member

Choose a reason for hiding this comment

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

need exit_guard

Copy link
Member Author

Choose a reason for hiding this comment

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

apply function is used to catch the whole errors.

exit_guard can not catch the Bump.

Copy link
Member

@zhang2014 zhang2014 Apr 28, 2022

Choose a reason for hiding this comment

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

What if panic?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think exit_guard can't catch the panic either.

Copy link
Member

@zhang2014 zhang2014 Apr 29, 2022

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-review pr-bugfix this PR patches a bug in codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants