Skip to content

Conversation

@EmmyMiao87
Copy link
Contributor

@EmmyMiao87 EmmyMiao87 commented Jun 3, 2020

Support independently add and build custom udf in Doris

*Source code:
The new directory named custom_udf is used to add and build custom udf.
The directory structure is as follows:

Doris
    -- be
    -- custom_udf
    -- fe

If user wants to add a new udf in Doris, the source code will be placed in custom_udf such as:

Doris
    -- be
    -- custom_udf
       -- src
          -- udf_samples
             -- udf_sample.h
    -- fe

*Build:
It can be built independently also the udf does not effect BE.
The file 'build_custom_udf.sh' is used to build udf with 2 params: --udf, --clean.
The default behavior is that building udf only.

*Output:
The dynamic link library will be placed in

Doris
    -- be
    -- output
       -- custom_udf
          -- udf_samples
             -- libUdfSample.so
Change-Id: Ic8ae16d37b53a904c3ec04e25f99e63442850e5a

@EmmyMiao87
Copy link
Contributor Author

Changing doc file

@EmmyMiao87 EmmyMiao87 closed this Jun 3, 2020
@morningman
Copy link
Contributor

Create a proposal first

@EmmyMiao87 EmmyMiao87 added area/udf Issues or PRs related to the UDF kind/improvement labels Jun 3, 2020
@EmmyMiao87 EmmyMiao87 linked an issue Jun 3, 2020 that may be closed by this pull request
@EmmyMiao87 EmmyMiao87 reopened this Jun 3, 2020
@EmmyMiao87 EmmyMiao87 changed the title Support independently add and build custom udf in Doris Support external users to contribute udf Jun 3, 2020
@EmmyMiao87 EmmyMiao87 added the kind/docs Categorizes issue or PR as related to documentation. label Jun 10, 2020
*Source code:
The new directory nanmed `custom_udf` is used to add and build custom udf.
The directory structure is as follows:
Doris
-- be
-- custom_udf
-- fe

If user wants to add a new udf in Doris, the source code will be placed in custom_udf such as:
Doris
-- be
-- custom_udf
   -- src
      -- udf_samples
         -- udf_sample.h
-- fe

*Build:
It can be built independently also the udf does not effect BE.
The file 'build_custom_udf.sh' is used to build udf with 2 params: --udf, --clean.
The default behavior is that building udf only.

*Output:
The dynamic link library will be placed in
Doris
-- be
-- output
   -- custom_udf
      -- udf_samples
         -- libUdfSample.so

Change-Id: Ic8ae16d37b53a904c3ec04e25f99e63442850e5a
Change-Id: Iaac181a887a0e2855457e7a7dda3e3330cce6f12
Change-Id: Id5a36aca627c1d87a3c83920b2cc978e0131d9ca
Change-Id: I9391a79f12614e78cce19b11df1e5d92eb4817c4
Change-Id: Iad5cd3be688731992709b080d1842530fe7a2a5b
Change-Id: I2eb883be97ddab1548c817bc832cf7f205116d00
Change-Id: I6f5ffe72463146046914c6c64d448d51901478fb
Change-Id: Ic9e6567b2920bb465af8c7896d4ab22a0b53635d
Change-Id: Ibfa7260193953611bf0cbdd3d3a38086230d0de6
Change-Id: Idfcda8bede3d980618f5b249129c54f9b15567f5
Change-Id: I167b7812a2d780a69c7f24183c9671a8053c6793
Change-Id: I932a1759fbca676206a228193e6e7697aca68e8a
Change-Id: I52bf4d19ae915444867f783f2e0534eaca9e8c36
Change-Id: If60dde5acb6cb7500f9e704636afabdf3907432d
Change-Id: Ief33d948febd28c9c9866d52e192ab84f561f397
Change-Id: I3bf09825e06d629dfeee8f8cc4b7e3ccd9e8d3a1
Change-Id: I930e3007e52a78678c420bbd4288565c3e06edf7
Change-Id: I53d93075e33e1a29293aa47d84d4995fef585c39
@morningman morningman added the approved Indicates a PR has been approved by one committer. label Jun 22, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman morningman merged commit feec4ee into apache:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/udf Issues or PRs related to the UDF kind/docs Categorizes issue or PR as related to documentation. kind/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support external users to contribute udf

2 participants