Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug] 修复 Java UDF 编译错误导致 Byzer Notebook 中的 job 不能被正确终止的问题。Fix a Java UDF compilation error that caused the Job in Byzer Notebook to fail to terminate correctly. #1699

Closed
chncaesar opened this issue Feb 22, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@chncaesar
Copy link
Contributor

chncaesar commented Feb 22, 2022

Steps to reproduce

  1. Login byze.org/trial, and submit the following code
REGISTER ScriptUDF.`` AS echoFun WHERE
and lang="java"
and udfType="udf"
and code='''
import java.util.HashMap;
import java.util.Map;
public class Test {
    public Map<String, String> apply(String s) {
      Map m = new HashMap<>();
      m.put(s, s);
      return m;
  }
}
'''

select  echoFun("a") as output;
  1. Notebook keeps running, and there's no error log.
  2. However , exception can be found in logs/engine.log
/streaming/udf/java/sun283382a5e4f666a0ad0b3436c7d6a8bd/UDF.java:7: error: class Test is public, should be declared in a file named Test.java
@chncaesar
Copy link
Contributor Author

Close this issue as its pr is merged

@Lindsaylin Lindsaylin added the bug label Mar 30, 2022
@Lindsaylin Lindsaylin changed the title Java UDF compilation error does not stop job from running in Notebook [Bug] 修复 Java UDF 编译错误导致 Byzer Notebook 中的 job 不能被正确终止的问题。Fix a Java UDF compilation error that caused the Job in Byzer Notebook to fail to terminate correctly. Mar 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants