alamb commented on issue #9580: URL: https://github.com/apache/arrow-datafusion/issues/9580#issuecomment-1997467876
> And, add a scalar function to convert a date to a specific time zone as per the HowTo [here](https://arrow.apache.org/datafusion/contributor-guide/index.html#how-to-add-a-new-scalar-function) so that it can be used by `sql_named_function_to_expr` to get the Result. Since the Timezone is encoded in the DataType I think you could call `Expr::Cast` with a DataType that had the appropriate timezone -- e.g. set the timezone correctly https://docs.rs/arrow/latest/arrow/datatypes/enum.DataType.html#variant.Timestamp and then cast the expression to that type -- 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]
