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

Add support for Java UDFs on the module path #881

Closed
kaklakariada opened this issue May 3, 2024 · 1 comment
Closed

Add support for Java UDFs on the module path #881

kaklakariada opened this issue May 3, 2024 · 1 comment
Labels
feature Product feature

Comments

@kaklakariada
Copy link
Contributor

Currently it is not possible to add JARs to the module path.

Executing the following UDF with a modularized JAR fails with error message F-UDF-CL-SL-JAVA-1042: FindClass for com.exasol.ExaUndefinedSingleCallException failed.

CREATE JAVA SCALAR SCRIPT JAVA_MODULE_TEST() RETURNS INT AS
%scriptclass com.exasol.slc.testudf.Main;
%jvmoption --module-path={java_udf_jar_bucketfs_path}:/buckets/default/udf-api-java-1.0.5.jar;
%jvmoption --add-exports=java.base/sun.security.x509=ALL-UNNAMED;
%jvmoption --add-modules=ALL-MODULE-PATH;

Adding /exaudf/javacontainer/libexaudf.jar additionally to the module path results in this error:

java.lang.module.ResolutionException: Module udf.api.java contains package com.exasol, module libexaudf exports package com.exasol to udf.api.java

To solve this, we need to extract the UDF API from libexaudf.jar and let libexaudf.jar depend on udf-api-java-1.0.5.jar.

@kaklakariada kaklakariada added feature Product feature timeline:long-term Unlikely to be implemented in the near future labels May 3, 2024
@redcatbear redcatbear removed the timeline:long-term Unlikely to be implemented in the near future label Sep 25, 2024
@redcatbear
Copy link
Contributor

Since no customer required that, we will close this ticket for now. We can reopen it once we get an explicit request.

@redcatbear redcatbear closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product feature
Projects
None yet
Development

No branches or pull requests

2 participants