Github user wuchong commented on a diff in the pull request:
https://github.com/apache/flink/pull/3176#discussion_r99568239
--- Diff:
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/functions/UserDefinedFunction.scala
---
@@ -24,4 +24,19 @@ package org.apache.flink.table.functions
* User-defined functions must have a default constructor and must be
instantiable during runtime.
*/
trait UserDefinedFunction {
--- End diff --
Did you create a Java class which extends `ScalarFunction` or
`TableFunction` ? I tried this in my environment but the compiling is failed.
```java
public class MyScalarFunction extends ScalarFunction {
public int eval(int a) {
return a + 1;
}
}
```
```
Error:(25, 8) java:
org.apache.flink.table.examples.java.MyScalarFunction䏿¯æ½è±¡ç,
并䏿ªè¦çorg.apache.flink.table.functions.UserDefinedFunctionä¸çæ½è±¡æ¹æ³close()
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---