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

UDF/UDAF/UDWF: refactor ReturnType #8182

Closed
JasonLi-cn opened this issue Nov 15, 2023 · 2 comments
Closed

UDF/UDAF/UDWF: refactor ReturnType #8182

JasonLi-cn opened this issue Nov 15, 2023 · 2 comments

Comments

@JasonLi-cn
Copy link
Contributor

Def one UDF:

my_udf(expr, 'return_type')

Using:

case1:

my_duf(col, 'UInt32')

Return Type is:
DataType::UInt32

case2:

my_duf(col, 'UInt64')

Return Type is:
DataType::UInt64

At present, the above udf cannot be realized through the ReturnTypeFunction. This is because the ReturnTypeFunction provides only the data types of the input parameters.

Originally posted by @JasonLi-cn in #7657

@JasonLi-cn
Copy link
Contributor Author

JasonLi-cn commented Nov 15, 2023

Discussion: #7657

@alamb
Copy link
Contributor

alamb commented Apr 12, 2024

Dupe of #8624

@alamb alamb closed this as completed Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants