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

Further relax the UDF constraints for Java classes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Table SQL / API
    • Labels:
      None

      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

            • Assignee:
              twalthr Timo Walther
              Reporter:
              twalthr Timo Walther
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: