Skip to main content

Module custom_functions

Module custom_functions 

Source
Expand description

User-defined scalar function registry.

Custom scalar functions can be registered at the database level and are available in both the DataFusion columnar execution path and the direct expression evaluator.

This is a dependency-light leaf type: it stores (name, fn) pairs and nothing else. The plugin-framework shadow (uni_plugin::PluginRegistry) that the DataFusion adapter consumes is built on demand by uni_query::query::df_udfs_plugin::plugin_registry_for_custom_functions, which lives in uni-query because it depends on uni-plugin.

Structs§

CustomFunctionRegistry
Registry of user-defined scalar functions.

Constants§

LEGACY_USER_PLUGIN_ID
Reserved plugin id used for legacy CustomFunctionRegistry registrations when they are mirrored into a uni_plugin::PluginRegistry shadow.

Type Aliases§

CustomScalarFn
Type alias for a custom scalar function.