Uh oh!
There was an error while loading. Please reload this page.
[fix](multi-catalog)put java udf to custom lib - #34990
Conversation
doris-robot
commented
May 17, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
wsjz
commented
May 22, 2024
run buildall |
doris-robot
commented
May 22, 2024
TeamCity be ut coverage result: |
wsjz
commented
May 22, 2024
run buildall |
doris-robot
commented
May 22, 2024
TeamCity be ut coverage result: |
doris-robot
commented
May 22, 2024
TPC-H: Total hot run time: 41889 ms |
doris-robot
commented
May 22, 2024
TPC-DS: Total hot run time: 182528 ms |
doris-robot
commented
May 22, 2024
ClickBench: Total hot run time: 30.89 s |
|
|
hello-stephen
commented
May 22, 2024
run buildall |
1 similar comment
wsjz
commented
May 22, 2024
run buildall |
doris-robot
commented
May 22, 2024
TeamCity be ut coverage result: |
doris-robot
commented
May 22, 2024
TPC-H: Total hot run time: 41509 ms |
doris-robot
commented
May 22, 2024
TPC-DS: Total hot run time: 171465 ms |
doris-robot
commented
May 22, 2024
ClickBench: Total hot run time: 30.55 s |
Uh oh!
There was an error while loading. Please reload this page.
hello-stephen
commented
May 22, 2024
run p0 |
wsjz
commented
May 23, 2024
run buildall |
doris-robot
commented
May 23, 2024
TeamCity be ut coverage result: |
doris-robot
commented
May 23, 2024
TPC-DS: Total hot run time: 170563 ms |
doris-robot
commented
May 23, 2024
ClickBench: Total hot run time: 30.07 s |
wsjz
commented
May 23, 2024
run buildall |
wsjz
commented
May 23, 2024
run buildall |
doris-robot
commented
May 23, 2024
TeamCity be ut coverage result: |
doris-robot
commented
May 23, 2024
TPC-H: Total hot run time: 41813 ms |
doris-robot
commented
May 23, 2024
TPC-DS: Total hot run time: 171249 ms |
doris-robot
commented
May 23, 2024
ClickBench: Total hot run time: 30.89 s |
wsjz
commented
May 24, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
May 24, 2024
TPC-H: Total hot run time: 39900 ms |
doris-robot
commented
May 24, 2024
TeamCity be ut coverage result: |
doris-robot
commented
May 24, 2024
TPC-DS: Total hot run time: 171149 ms |
doris-robot
commented
May 24, 2024
ClickBench: Total hot run time: 29.72 s |
| package org.apache.doris.analysis; | ||
| import okio.Path; |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
when use java udf , we can put its jars in custom_lib of FE and BE in advance, and then we can create function without file property: ``` CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES ( "symbol"="org.apache.doris.udf.AddOne", "always_nullable"="true", "type"="JAVA_UDF" ); ``` and we can use file property for custom jar: ``` CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES ( "file"="file:///path/to/java-udf-demo.jar", "symbol"="org.apache.doris.udf.AddOne", "always_nullable"="true", "type"="JAVA_UDF" ); ``` on FE, we use null location if the 'file' property is not set on BE, we get jar path if both file path location and checksum are null
when use java udf , we can put its jars in custom_lib of FE and BE in advance, and then we can create function without file property: ``` CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES ( "symbol"="org.apache.doris.udf.AddOne", "always_nullable"="true", "type"="JAVA_UDF" ); ``` and we can use file property for custom jar: ``` CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES ( "file"="file:///path/to/java-udf-demo.jar", "symbol"="org.apache.doris.udf.AddOne", "always_nullable"="true", "type"="JAVA_UDF" ); ``` on FE, we use null location if the 'file' property is not set on BE, we get jar path if both file path location and checksum are null
… jars (apache#35986) see apache#34990 user class maybe use some tripartite lib, we should put them back of fe jars to avoid conflicts
when use java udf , we can put its jars in custom_lib of FE and BE in advance, and then we can create function without file property: ``` CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES ( "symbol"="org.apache.doris.udf.AddOne", "always_nullable"="true", "type"="JAVA_UDF" ); ``` and we can use file property for custom jar: ``` CREATE FUNCTION java_udf_add_one(int) RETURNS int PROPERTIES ( "file"="file:///path/to/java-udf-demo.jar", "symbol"="org.apache.doris.udf.AddOne", "always_nullable"="true", "type"="JAVA_UDF" ); ``` on FE, we use null location if the 'file' property is not set on BE, we get jar path if both file path location and checksum are null
Proposed changes
when use java udf , we can put its jars in custom_lib of FE and BE in advance, and then we can create function without file property:
and we can use file property for custom jar:
on FE, we use null location if the 'file' property is not set
on BE, we get jar path if both file path location and checksum are null
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...