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

[Rust] [DataFusion] Improve API for usage of UDFs #25875

Closed
asfimport opened this issue Aug 23, 2020 · 1 comment
Closed

[Rust] [DataFusion] Improve API for usage of UDFs #25875

asfimport opened this issue Aug 23, 2020 · 1 comment

Comments

@asfimport
Copy link
Collaborator

asfimport commented Aug 23, 2020

TL;DR; currently, users call UDFs through
 
df.select(scalar_functions(“sqrt”, vec![col(“a”)], DataType::Float64))
 
Proposal:
 
let f = df.registry();

df.select(f.udf(“sqrt”, vec![col(“a”)])?)
 
so that they do not have to remember the UDFs return type when using it.
 
This API will in the future allow to declare the UDF as part of the planning, like spark, instead of having to register it in the registry before using it (we just need to check if the UDF is registered or not before doing so).
See complete proposal here: https://docs.google.com/document/d/1Kzz642ScizeKXmVE1bBlbLvR663BKQaGqVIyy9cAscY/edit?usp=sharing

 

Reporter: Jorge Leitão / @jorgecarleitao
Assignee: Jorge Leitão / @jorgecarleitao

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-9836. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Andy Grove / @andygrove:
Issue resolved by pull request 8032
#8032

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

No branches or pull requests

2 participants