alamb commented on code in PR #8981:
URL: https://github.com/apache/arrow-datafusion/pull/8981#discussion_r1465440454
##########
datafusion-examples/examples/to_timestamp.rs:
##########
@@ -90,20 +92,47 @@ async fn main() -> Result<()> {
df.show().await?;
// use sql to convert a static string to a timestamp using a list of
chrono formats to try
- let df = ctx.sql("select to_timestamp('01-14-2023 01:01:30+05:30', '%+',
'%d-%m-%Y %H/%M/%S', '%m-%d-%Y %H:%M:%S%#z')").await?;
+ // note that one of the formats is invalid ('%q') but since DataFusion
will try all the
Review Comment:
This is really nice -- thank you @Omega359
--
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]