vinodkc commented on code in PR #53370:
URL: https://github.com/apache/spark/pull/53370#discussion_r2612135657


##########
sql/core/src/test/resources/sql-tests/inputs/time.sql:
##########
@@ -302,38 +302,38 @@ SELECT '12:30:41.123' - TIME'10:00:01';
 SELECT '23:59:59.999999' :: TIME(6) - '00:00' :: TIME(0);
 SELECT '00:00:00.1234' :: TIME(4) - TIME'23:59:59';
 
--- Numeric constructor functions for TIME type
--- time_from_seconds
+-- Numeric constructor and extractor functions for TIME type
+
+-- time_from_seconds (valid: 0 to 86399.999999)
 SELECT time_from_seconds(0);
 SELECT time_from_seconds(43200);
 SELECT time_from_seconds(52200.5);
 SELECT time_from_seconds(86399.999999);
-SELECT time_from_seconds(-1);
-SELECT time_from_seconds(86400);
-SELECT time_from_seconds(90000);
+SELECT time_from_seconds(-1);           -- invalid: negative → exception

Review Comment:
   Done



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