User-defined functions

更新时间:
复制 MD 格式

OpenSearch High-performance Search Edition supports user-defined functions (UDFs, UDAFs, and TVFs), enabling you to extend data processing logic beyond native search capabilities and meet custom business requirements.

  • User-defined function (UDF): Accepts one or more fields from a single row as input and returns a single calculated result. For more information, see UDF usage.

  • User-defined aggregate function (UDAF): Aggregates data from multiple rows and returns a statistical result. For more information, see UDAF usage.

  • Table-valued function (TVF): Returns a structured dataset with multiple rows and columns that can be used in queries as a standard table. For more information, see TVF usage.