alex-plekhanov commented on code in PR #4458:
URL: https://github.com/apache/calcite/pull/4458#discussion_r2190388941


##########
core/src/test/resources/sql/cast.iq:
##########
@@ -1918,4 +1918,43 @@ EnumerableCalc(expr#0=[{inputs}], 
expr#1=[1.11:DECIMAL(3, 2)], expr#2=[2.22:DECI
   EnumerableValues(tuples=[[{ 0 }]])
 !plan
 
+# [CALCITE-7062]
+# Common type for nullable date and not nullable timestamp
+SELECT CAST(NULL AS DATE) UNION ALL SELECT TIMESTAMP '2025-07-04 10:00:00';
++---------------------+
+| EXPR$0              |
++---------------------+
+|                     |
+| 2025-07-04 10:00:00 |
++---------------------+
+(2 rows)
+
+!ok
+
+# [CALCITE-7062]
+# Common type for null and not nullable array;
+SELECT ARRAY[1, 2, 3] UNION ALL SELECT NULL;

Review Comment:
   Test added



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

Reply via email to