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

support implicit cast for UDF arguments #9998

Closed
Tracked by #7405
wangrunji0408 opened this issue May 25, 2023 · 1 comment · Fixed by #14338
Closed
Tracked by #7405

support implicit cast for UDF arguments #9998

wangrunji0408 opened this issue May 25, 2023 · 1 comment · Fixed by #14338
Assignees
Labels
component/func-expr Support a SQL function or operator help wanted Issues that need help from contributors
Milestone

Comments

@wangrunji0408
Copy link
Contributor

          Do we intend to support implicit cast of arguments or require explicit cast? For example, given a builtin `sind(double precision) -> double precision`, we can write `sind(30)`. But if that was a udf we have to write `sind_udf(30::double precision)` right now.

Originally posted by @xiangjinwu in #7405 (comment)

@xxchan
Copy link
Member

xxchan commented Jul 6, 2023

A little note: the entry point of implicit cast seems to be FunctionCall::new (quite mysterious piece of work).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/func-expr Support a SQL function or operator help wanted Issues that need help from contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants