uros-b commented on code in PR #56690:
URL: https://github.com/apache/spark/pull/56690#discussion_r3461464414


##########
sql/core/src/test/resources/sql-tests/inputs/try_cast.sql:
##########
@@ -51,4 +51,10 @@ SELECT TRY_CAST("2021-101-01" AS date);
 
 -- TRY_CAST string to timestamp
 SELECT TRY_CAST("2021-01-01 00:00:00" AS timestamp);
-SELECT TRY_CAST("2021-101-01 00:00:00" AS timestamp);
\ No newline at end of file
+SELECT TRY_CAST("2021-101-01 00:00:00" AS timestamp);
+
+-- TRY_CAST string to time
+SELECT TRY_CAST("12:34:56" AS time);
+SELECT TRY_CAST("12:34:56.789012" AS time(6));
+SELECT TRY_CAST("24:00:00" AS time);
+SELECT TRY_CAST("12:34:56 abc" AS time);

Review Comment:
   Please add newline



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