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


##########
sql/core/src/test/resources/sql-tests/inputs/time.sql:
##########
@@ -366,3 +366,51 @@ SELECT time_to_millis(time_from_millis(52200500));
 SELECT time_from_millis(time_to_millis(TIME'14:30:00.5'));
 SELECT time_to_micros(time_from_micros(52200500000));
 SELECT time_from_micros(time_to_micros(TIME'14:30:00.5'));
+
+-- SPARK-57585: common TIME(p) type for mixed-precision operands in set and 
conditional operations.
+-- The result type is the TIME with the largest fractional-seconds precision; 
values from the
+-- smaller-precision side are widened losslessly.
+
+-- UNION widens TIME(3) and TIME(6) to TIME(6).

Review Comment:
   Can we also add INTERSECT and EXCEPT? For more complete set operations 
testing



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