Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flink supports udf function #5067

Merged
merged 3 commits into from
Jan 12, 2024
Merged

Conversation

ChengJie1053
Copy link
Member

@ChengJie1053 ChengJie1053 commented Jan 11, 2024

Flink supports udf function

Submit the flink udf task parameters

sh /appcom/Install/LinkisInstall150/bin/linkis-cli -engineType flink-1.16.2
-codeType sql -code "select linkis_flink_udf('test')"
-submitUser hadoop -proxyUser hadoop

image

image

image

image

LinkisFlinkUdfExample
image

org.apache.linkis.engineplugin.flink.LinkisFlinkUdfExample

You can also download it directly from the link below
https://github.com/ChengJie1053/linkis_flink_udf_example/blob/main/linkis_flink_udf_example.jar

Map<String, Object> map = (Map<String, Object>) confData.get(conf);
List<String> jarList = new ArrayList<>();
jarList.add(path);
map.put(PipelineOptions.CLASSPATHS.key(), jarList);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to consider the situation where the value was originally changed to append list?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, thanks for reviewing the code

Copy link
Contributor

@peacewong peacewong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@peacewong peacewong merged commit 6736fed into apache:master Jan 12, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants