Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions docs/query-data/udf/java-user-defined-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ When writing a UDF in Java, the main entry point must be the `evaluate` function
"file"="file:///path/to/java-udf-demo-jar-with-dependencies.jar",
"symbol"="org.apache.doris.udf.AddOne",
"always_nullable"="true",
"type"="JAVA_UDF"
"type"="JAVA_UDF",
"volatility"="immutable"
);
```

Expand Down Expand Up @@ -344,7 +345,8 @@ public void destroy(State state) {
"file"="file:///pathTo/java-udaf.jar",
"symbol"="org.apache.doris.udf.SimpleDemo",
"always_nullable"="true",
"type"="JAVA_UDF"
"type"="JAVA_UDF",
"volatility"="immutable"
);
```

Expand Down Expand Up @@ -386,7 +388,8 @@ void reset(State state)
"file"="file:///pathTo/java-udaf.jar",
"symbol"="org.apache.doris.udf.SimpleDemo",
"always_nullable"="true",
"type"="JAVA_UDF"
"type"="JAVA_UDF",
"volatility"="immutable"
);
```

Expand Down Expand Up @@ -431,7 +434,8 @@ Like UDF, UDTF requires you to implement the `evaluate` method, but the return v
"file"="file:///pathTo/java-udtf.jar",
"symbol"="org.apache.doris.udf.demo.UDTFStringTest",
"always_nullable"="true",
"type"="JAVA_UDF"
"type"="JAVA_UDF",
"volatility"="immutable"
);
```

Expand Down Expand Up @@ -527,7 +531,8 @@ The steps are as follows:
"file"="file:///pathTo/FunctionUdf.jar",
"symbol"="org.apache.doris.udf.FunctionUdf",
"always_nullable"="true",
"type"="JAVA_UDF"
"type"="JAVA_UDF",
"volatility"="immutable"
);
```

Expand Down
Loading
Loading