Overview
Registering a Scalar UDF involves including the specified UDF in the backend database and returning a UDF operator that can be manipulated within the Ibis DataFrame after registration.
The value returned by registering a Scalar UDF is a UDF operator in the DataFrame. This UDF operator can subsequently be invoked multiple times by various DataFrame expressions.
Overall, registering a Scalar UDF can be done in two ways: explicit registration and implicit registration.
Registration Method |
Description |
Dependent on Session Object |
Intrusively Add Registration Logic |
Use Case |
Helpful Link |
---|---|---|---|---|---|
Explicit registration |
Code explicitly specifies the registration information of the Scalar UDF. |
Yes |
Yes |
If you wish to precisely control the registration timing, allow intrusive addition of registration logic, or require separation between registration and usage of Scalar UDFs under the same backend connection. |
|
Implicit registration |
Automatically discovers and registers Scalar UDFs during runtime. |
No |
No |
If you prefer non-intrusive registration of Scalar UDFs and do not require separation between registration and usage of Scalar UDFs under the same backend connection. |
Whether using explicit or implicit registration, the meaning of registration differs depending on the Scalar UDF type. Details are provided in the table below.
Scalar UDF Type |
Meaning |
Helpful Link |
---|---|---|
python |
Registers a raw Python function into the database. |
|
builtin |
Obtains the handle of an existing function in the database; no actual registration operation is performed. |
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