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

move Floor, Gcd, Lcm, Pi to datafusion-functions #9976

Merged
merged 3 commits into from
Apr 8, 2024
Merged

Conversation

Omega359
Copy link
Contributor

@Omega359 Omega359 commented Apr 6, 2024

Which issue does this PR close?

Closes #9861

Rationale for this change

Function migration.

What changes are included in this PR?

code, tests.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions physical-expr Physical Expressions optimizer Optimizer rules labels Apr 6, 2024
@Omega359 Omega359 marked this pull request as ready for review April 6, 2024 18:21
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

I think this PR is behavior change, so I add label.

As part of #9285 (for link EPIC issue)

@jackwener jackwener added the api change Changes the API exposed to users of the crate label Apr 7, 2024
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

Thanks @Omega359

@Omega359
Copy link
Contributor Author

Omega359 commented Apr 7, 2024

Thanks @jackwener - may I ask what you see as a behaviour change? From my understanding there shouldn't be any user facing changes beyond where a function is located in the code (for dataframe use cases). Did I miss/change something inadvertently (it's happened before ...) ?

use crate::utils::make_scalar_function;

#[derive(Debug)]
pub struct LcmFunc {
Copy link
Member

Choose a reason for hiding this comment

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

Should it bepub(super) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't believe so - this is following the pattern set out in #9903

@jackwener
Copy link
Member

Thanks @jackwener - may I ask what you see as a behaviour change? From my understanding there shouldn't be any user facing changes beyond where a function is located in the code (for dataframe use cases). Did I miss/change something inadvertently (it's happened before ...) ?

my mistake, sorry for it.

@jackwener jackwener removed the api change Changes the API exposed to users of the crate label Apr 7, 2024
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

I prepare to merge this PR next day if others don't have any question.

Copy link
Contributor

@comphead comphead 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 @Omega359

@comphead
Copy link
Contributor

comphead commented Apr 8, 2024

Will merge it before the conflicts

@comphead comphead merged commit bece785 into apache:main Apr 8, 2024
24 checks passed
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 optimizer Optimizer rules physical-expr Physical Expressions sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move Floor, Gcd, Lcm, Pi to datafusion-functions
3 participants