Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-15600

Further relax the UDF constraints for Java classes

    XMLWordPrintableJSON

Details

    Description

      FLINK-12283 already relaxed the UDF constraints for classes which is a big usability improvement for Scala users. However, Java users are still facing issues when using anonymous inner classes.

      We should allow the following:

      tEnv.registerFunction("testi", new ScalarFunction() {
      	public String eval(Integer i) {
      		return String.valueOf(i);
      	}
      });
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            twalthr Timo Walther
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: