minhasav commented on code in PR #30240:
URL: https://github.com/apache/flink/pull/30240#discussion_r4790356026
##########
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:
@yiyutian1 Thanks for the review, i have made changes to go with the 2nd
option to keep the method signature same
--
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]