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

Fixed Migrate Datetime functions to invoke_with_args Issue 14705 #14792

Closed
wants to merge 4 commits into from

Conversation

varun-bhardwaj-sde
Copy link

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@varun-bhardwaj-sde
Copy link
Author

sir @goldmedal @alamb i am new in rust and this will be my first contribution please check my code and let me know if it is right or wrong ,i want to merge this change if there are any issue please let me know i will change them accordingly

@goldmedal
Copy link
Contributor

sir @goldmedal @alamb i am new in rust and this will be my first contribution please check my code and let me know if it is right or wrong ,i want to merge this change if there are any issue please let me know i will change them accordingly

Welcome @varun-bhardwaj-sde. I enabled the CI. Some errors need to be fixed. I'll go over this after you're done.

internal_err!(
"invoke should not be called on a simplified current_date() function"
)
fn invoke_with_args(&self, args: &[ColumnarValue]) -> Result<ColumnarValue> {
Copy link
Contributor

Choose a reason for hiding this comment

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

The signature of the invoke_with_args should be:

    fn invoke_with_args(&self, args: ScalarFunctionArgs) -> Result<ColumnarValue>.

You can check the ScalarUDFImpl trait in the datafusion::expr::udf crate.

@alamb alamb marked this pull request as draft February 21, 2025 12:11
@alamb
Copy link
Contributor

alamb commented Feb 21, 2025

Marking as draft as I think this PR is no longer waiting on feedback. Please mark it as ready for review when it is ready for another look

@alamb
Copy link
Contributor

alamb commented Feb 21, 2025

Thank you @niebayes for helping with the review

@varun-bhardwaj-sde varun-bhardwaj-sde closed this by deleting the head repository Feb 23, 2025
@varun-bhardwaj-sde
Copy link
Author

it was closed by misktake i raised another PR #14864 for this task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Datetime functions to invoke_with_args
5 participants