Skip to content

[doc](udf) remove the expiration_time in create function#3845

Open
zhangstar333 wants to merge 1 commit into
apache:masterfrom
zhangstar333:udf-remove-time
Open

[doc](udf) remove the expiration_time in create function#3845
zhangstar333 wants to merge 1 commit into
apache:masterfrom
zhangstar333:udf-remove-time

Conversation

@zhangstar333
Copy link
Copy Markdown
Contributor

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1 or older (not covered by version/language sync gate)

Languages

  • Chinese
  • English
  • Japanese candidate translation needed

Docs Checklist

  • Checked by AI
  • Test Cases Built
  • Updated required version and language counterparts, or explained why not
  • If only one language changed, confirmed whether source/translation counterparts need sync

zhangstar333 added a commit to apache/doris that referenced this pull request Jun 2, 2026
### What problem does this PR solve?
Problem Summary:
doc apache/doris-website#3845
```
CREATE FUNCTION print_12() RETURNS int 
PROPERTIES (
    "file" = "file:///path/to/java-udf-demo-jar-with-dependencies.jar",
    "symbol" = "org.apache.doris.udf.Print", 
    "always_nullable"="true",
    "type" = "JAVA_UDF",
    "static_load" = "true", // default value is false
    "expiration_time" = "60" // default value is 360 minutes
);
```

```
before in the java-udf could use  static_load and expiration_time to control the cache jar times in BE.
which use a backgroud thread to scan the jars every ten minutes, check it's init times, and then drop it if time expire.
those will cause some long running query failed when the backgroud thread remove it.
Now, remove the expiration_time, and the jar will be clean when drop fucntion immediately

```
github-actions Bot pushed a commit to apache/doris that referenced this pull request Jun 2, 2026
### What problem does this PR solve?
Problem Summary:
doc apache/doris-website#3845
```
CREATE FUNCTION print_12() RETURNS int 
PROPERTIES (
    "file" = "file:///path/to/java-udf-demo-jar-with-dependencies.jar",
    "symbol" = "org.apache.doris.udf.Print", 
    "always_nullable"="true",
    "type" = "JAVA_UDF",
    "static_load" = "true", // default value is false
    "expiration_time" = "60" // default value is 360 minutes
);
```

```
before in the java-udf could use  static_load and expiration_time to control the cache jar times in BE.
which use a backgroud thread to scan the jars every ten minutes, check it's init times, and then drop it if time expire.
those will cause some long running query failed when the backgroud thread remove it.
Now, remove the expiration_time, and the jar will be clean when drop fucntion immediately

```
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.

1 participant