davidradl commented on code in PR #25897:
URL: https://github.com/apache/flink/pull/25897#discussion_r1909115088
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/calls/FloorCeilCallGen.scala:
##########
@@ -65,15 +65,17 @@ class FloorCeilCallGen(
unit match {
// for Timestamp with timezone info
case MILLENNIUM | CENTURY | DECADE | YEAR | QUARTER | MONTH | WEEK
| DAY | HOUR |
- MINUTE | SECOND | MILLISECOND
- if terms.length + 1 == method.getParameterCount &&
- method.getParameterTypes()(terms.length) ==
classOf[TimeZone] =>
+ MINUTE | SECOND | MILLISECOND | MICROSECOND | NANOSECOND
+ if terms.length + 2 == method.getParameterCount &&
Review Comment:
I wonder if we can make the code more readable and not use `terms.length +
2` or terms.length + 1).
--
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]