Omega359 commented on code in PR #19078:
URL: https://github.com/apache/datafusion/pull/19078#discussion_r2589274413


##########
datafusion/functions/src/datetime/to_timestamp.rs:
##########
@@ -165,17 +222,31 @@ Additional examples can be found 
[here](https://github.com/apache/datafusion/blo
     ),
     argument(
         name = "format_n",
-        description = "Optional [Chrono 
format](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) 
strings to use to parse the expression. Formats will be tried in the order they 
appear with the first successful one being returned. If none of the formats 
successfully parse the expression an error will be returned."
+        description = r#"
+Optional [Chrono 
format](https://docs.rs/chrono/latest/chrono/format/strftime/index.html) 
strings to use to parse the expression.
+Formats will be tried in the order they appear with the first successful one 
being returned. If none of the formats successfully
+parse the expression an error will be returned. Note: parsing of named 
timezones (e.g. 'America/New_York') using %Z is
+only supported at the end of the string preceded by a space.
+"#
     )
 )]
 #[derive(Debug, PartialEq, Eq, Hash)]
 pub struct ToTimestampMicrosFunc {
     signature: Signature,
+    timezone: Option<Arc<str>>,
 }
 
 #[user_doc(
     doc_section(label = "Time and Date Functions"),
-    description = "Converts a value to a timestamp 
(`YYYY-MM-DDT00:00:00.000000000Z`). Supports strings, integer, and unsigned 
integer types as input. Strings are parsed as RFC3339 (e.g. 
'2023-07-20T05:44:00') if no [Chrono 
format](https://docs.rs/chrono/latest/chrono/format/strftime/index.html)s are 
provided. Integers and unsigned integers are interpreted as nanoseconds since 
the unix epoch (`1970-01-01T00:00:00Z`). Returns the corresponding timestamp.",
+    description = r#"
+Converts a value to a timestamp (`YYYY-MM-DDT00:00:00.000000000Z<TZ>`) in the 
session time zone. Supports strings,

Review Comment:
   Nice catch! I had made that change in a different local branch but forgot to 
update it here.



-- 
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]

Reply via email to