alamb opened a new issue, #10566: URL: https://github.com/apache/datafusion/issues/10566
### Is your feature request related to a problem or challenge? The signature of [`get_field`](https://docs.rs/datafusion/latest/datafusion/functions/core/expr_fn/fn.get_field.html) is akward -- it requires a string but the function signature takes a "Expr" so you have to wrap it with `lit` you would have to write ```rust get_field(col("a"), lit("value") ``` Previously you could write ```rust col("a").field("value") ``` but after https://github.com/apache/datafusion/issues/10565 that panics ### Describe the solution you'd like I would like to have get_field take a str instead: ```sql get_field(col("a"), "value") ``` Probably with a signature like ```rust fn get_field(expr, field_name: impl Into<Literal>) -> Expr { let field_name_as_expr = lit(field_name.into()); .. } ``` ### Describe alternatives you've considered leave it as is ### Additional context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
