Scalar UDF Explicit Registration Syntax
Explicit registration means you need to manually add registration logic code intrusively in Python code, using backend...register or register_from_file to achieve it, where calling equals registering. Explicit registration depends on having already obtained the backend session object before proceeding.
Scenarios recommending explicit registration: If you wish to explicitly control registration timing, allow intrusive addition of registration logic, or require separation of Scalar UDF registration and usage under the same backend connection.
A typical scenario involves one development team being responsible for UDF registration while multiple teams handle UDF usage, with no communication between the Python scripts of the registration and usage teams.
UDF Type |
UDF Type (Secondary) |
Registration Type (Tertiary) |
Code Entry |
Helpful Link |
---|---|---|---|---|
udf |
python |
Direct registration |
backend.udf.python.register(<Registration function>, <Registration parameters>) |
|
File-based registration |
backend.udf.python.register_from_file(<File path>, <Function name>, <Registration parameters>) |
|||
builtin |
Direct registration |
backend.udf.builtin.register(<Registration function>, <Registration parameters>) |
||
File-based registration |
backend.udf.builtin.register_from_file(<File path>, <Function name>, <Registration parameters>) |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot