You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #23488 on September 19, 2024 02:27.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I customize the udf function plugin,met a problem
java.lang.IllegalStateException: No service providers of type io.prestosql.spi.Plugin
trino version is 350
import com.google.common.collect.ImmutableSet;
import io.prestosql.spi.Plugin;
import java.util.Set;
//Presto 注册自定义函数的类,此类需要继承Plugin接口
public class MyFunctionsPlugin implements Plugin {
@OverRide
public Set<Class> getFunctions() { return ImmutableSet.>builder()
.add(MyUDF.class)
.build();
}
}
public class MyUDF {
@ScalarFunction("lower_cxk")
}
META-INF.service/io.prestosql.spi.Plugin
org.example.xx.MyFunctionsPlugin
How to troubleshoot this problem?
Beta Was this translation helpful? Give feedback.
All reactions