snuyanzin commented on code in PR #17677:
URL: https://github.com/apache/flink/pull/17677#discussion_r863851471
##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/functions/TimeFunctionsITCase.java:
##########
@@ -425,4 +430,304 @@ private Stream<TestSetSpec> temporalOverlapsTestCases() {
temporalOverlaps($("f1"), $("f0"), $("f1"),
$("f0")),
"TEMPORAL_OVERLAPS requires 2nd argument
'leftTemporal' to be DATETIME or INTERVAL type, but is INT"));
}
+
+ private Stream<TestSetSpec> ceilTestCases() {
+ return Stream.of(
+ TestSetSpec.forFunction(BuiltInFunctionDefinitions.FLOOR)
+ .onFieldsWithData(
+ LocalTime.of(11, 22, 33),
Review Comment:
This is probably a bit tricky.
I faced an issue that time is always considered as `TIME(0)` even after
`CAST(TIME'11:22:33.123' AS TIME(3))` it will be casted to `TIME(0)`. So,
probably first need to solve this issue with `TIME`
--
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]