alex-plekhanov commented on code in PR #4076:
URL: https://github.com/apache/calcite/pull/4076#discussion_r1869768526
##########
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java:
##########
@@ -1000,6 +1000,10 @@ void testCastToInterval(CastType castType,
SqlOperatorFixture f) {
"cast(-5723 as interval minute(4))",
"-5723",
"INTERVAL MINUTE(4) NOT NULL");
+ f.checkScalar(
Review Comment:
What else? I can add DECIMAL, like this:
```
f.checkScalar(
"cast(cast(1 as decimal) as interval minute)",
"+1",
"INTERVAL MINUTE NOT NULL");
```
Is it ok?
Approximate numerics (FLOAT, DOUBLE) are not supported for casting to
interval.
--
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]