slinkydeveloper commented on a change in pull request #18108:
URL: https://github.com/apache/flink/pull/18108#discussion_r769512693
##########
File path:
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/GenerateUtils.scala
##########
@@ -448,14 +448,35 @@ object GenerateUtils {
}
}
- def generateSymbol(enum: Enum[_]): GeneratedExpression = {
+ def generateSymbol(value: Enum[_]): GeneratedExpression = {
+ // Make sure to convert calcite enum types to flink types
+ val convertedValue = value match {
+ case tu: org.apache.calcite.avatica.util.TimeUnit =>
Review comment:
I suggest we keep this out of this PR. I'll open another issue for this
and tackle separately
--
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]