jnh5y commented on code in PR #30240:
URL: https://github.com/apache/flink/pull/30240#discussion_r4772306224
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/agg/batch/WindowCodeGenerator.scala:
##########
@@ -764,7 +763,7 @@ object WindowCodeGenerator {
new JTuple2[JLong, JLong](windowSize, slideSize)
}
- def asLong(expr: Expression): Long = extractValue(expr, classOf[JLong]).get()
+ def asLong(expr: ValueLiteralExpression): Long =
AggregateUtil.toDuration(expr).toMillis
Review Comment:
I'm surprised that we need to make this class more specific. Is
`extractValue` doing the wrong thing here?
--
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]