Github user xccui commented on a diff in the pull request: https://github.com/apache/flink/pull/6090#discussion_r196995942 --- Diff: flink-libraries/flink-sql-client/src/main/java/org/apache/flink/table/client/gateway/local/ExecutionContext.java --- @@ -187,6 +206,7 @@ private static ClusterSpecification createClusterSpecification(CustomCommandLine private final StreamExecutionEnvironment streamExecEnv; private final TableEnvironment tableEnv; + @SuppressWarnings("unchecked") --- End diff -- The `AggregateFunction` and `TableFunction` take generic type parameters. Thus when do conversions (e.g., `streamTableEnvironment.registerFunction(k, (AggregateFunction) udf);`) the Java compiler complains about that.
---