dinky icon indicating copy to clipboard operation
dinky copied to clipboard

[Bug] [Module Name] Create a new udf information module without displaying the class name. Create a job after creating a new udf. The default flinksql job is, but the required items are class name and udf template

Open ZYH654 opened this issue 6 months ago • 4 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

What happened

Image

Image 最新版本 1.2.3

What you expected to happen

Image

Image 最新版本 1.2.3

How to reproduce

Image

Image 最新版本 1.2.3

Anything else

Image

Image 最新版本 1.2.3

Version

1.2.3

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

ZYH654 avatar Jun 19 '25 06:06 ZYH654

Hello @ZYH654, this issue is about UDF, so I assign it to @gaoyan1998 and @zackyoungh. If you have any questions, you can comment and reply.

你好 @ZYH654, 这个 issue 是关于 UDF 的,所以我把它分配给了 @gaoyan1998 和 @zackyoungh。如有任何问题,可以评论回复。

github-actions[bot] avatar Jun 19 '25 06:06 github-actions[bot]

保存发布之后,再次修改 udf 再保存发布 好像是不生效的,还是引用之前的方法, 第一次创建 package com.yuhui.udf;

import org.apache.flink.table.functions.ScalarFunction;

public class suiji extends ScalarFunction { public int eval(Integer s) { return s.hashCode(); } }

修改

package com.yuhui.udf;

import org.apache.flink.table.functions.ScalarFunction;

public class suiji extends ScalarFunction { public String eval(String s) { return 'udf'; } } flinksql中删除创建的函数从新注册,发现 还是还是引用之前的方法, 提示 函数为 int但是传入的是 string

ZYH654 avatar Jun 19 '25 08:06 ZYH654

Hello @, this issue has not been active for more than 30 days. This issue will be closed in 7 days if there is no response. If you have any questions, you can comment and reply.

你好 @, 这个 issue 30 天内没有活跃,7 天后将关闭,如需回复,可以评论回复。

github-actions[bot] avatar Sep 01 '25 00:09 github-actions[bot]

我也遇到了这个情况,我感觉是dinky服务启动时才会进行一次编译

MongoTap avatar Nov 05 '25 08:11 MongoTap