andygrove opened a new issue, #2870: URL: https://github.com/apache/arrow-datafusion/issues/2870
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** When using the dataframe API there is no easy way to cast a column to another type **Describe the solution you'd like** I would like a `cast` function something like this: ```rust fn cast(expr: Expr, data_type: DataType) -> Expr { Expr::Cast { expr: Box::new(expr), data_type, } } ``` This would allow me to then write dataframe code like this: ```rust .with_column( "unixReviewTimestamp", cast( col("unixReviewTime"), DataType::Timestamp(TimeUnit::Millisecond, None), ), )? ``` **Describe alternatives you've considered** None **Additional context** None -- 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: github-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org