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

implement short_circuits function for ScalarUDFImpl trait #10168

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

Lordworms
Copy link
Contributor

Which issue does this PR close?

Closes #10162

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Apr 22, 2024
@@ -376,6 +376,12 @@ pub trait ScalarUDFImpl: Debug + Send + Sync {
) -> Result<ExprSimplifyResult> {
Ok(ExprSimplifyResult::Original(args))
}
/// Returns true if some of this `exprs` subexpressions may not be evaluated
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// Returns true if some of this `exprs` subexpressions may not be evaluated
/// Returns true if some of this `exprs` subexpressions may not be evaluated

Copy link
Contributor

Choose a reason for hiding this comment

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

blank line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it

@liukun4515
Copy link
Contributor

after #10098 merge, you can rewrite this function for Coalsce

@alamb
Copy link
Contributor

alamb commented Apr 22, 2024

after #10098 merge, you can rewrite this function for Coalsce

#10098 is merged now. Thank you @Lordworms

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @Lordworms . Looks great to me

cc @Omega359

@alamb alamb merged commit f5ab312 into apache:main Apr 22, 2024
23 checks passed
ccciudatu pushed a commit to hstack/arrow-datafusion that referenced this pull request Apr 26, 2024
* implement short_circuits function for ScalarUDFImpl trait

* finish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions
Projects
None yet
3 participants