Cleaner API to create Expr::ScalarFunction
programatically
#1718
Labels
datafusion
Changes in the datafusion crate
enhancement
New feature or request
good first issue
Good for newcomers
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I am trying to programatically create
Expr
s that represent function calls, for exampleto_timetsamp(x, 4)
or somethingTo do so today you have to do something like this (from simplify_expressions.rs) which is 🤮
Describe the solution you'd like
I would like to write code like this
Note you can lookup a
str
to scalar function by name with something like:Additional context
There are a bunch of this nonsense in
simplify_expression.rs
which could be cleaned upThe text was updated successfully, but these errors were encountered: