Skip to main content

Description

Contains loading status, error information, and configuration metadata for User-Defined Functions (UDFs).

Columns

  • name (String) โ€” UDF name.
  • load_status (Enum8(โ€˜Successโ€™ = 0, โ€˜Failedโ€™ = 1)) โ€” Loading status. Possible values: Success โ€” UDF loaded and ready to use, Failed โ€” UDF failed to load (see field โ€˜loading_error_messageโ€™ for details).
  • loading_error_message (String) โ€” Detailed error message when loading failed. Empty if loaded successfully.
  • last_successful_update_time (Nullable(DateTime)) โ€” Timestamp of the last successful update. NULL if never succeeded.
  • loading_duration_ms (UInt64) โ€” Time spent loading the UDF, in milliseconds.
  • type (Enum8(โ€˜executableโ€™ = 0, โ€˜executable_poolโ€™ = 1)) โ€” UDF type: โ€˜executableโ€™ (single process) or โ€˜executable_poolโ€™ (process pool).
  • command (String) โ€” Script or command to execute for this UDF.
  • format (String) โ€” Data format for I/O (e.g., โ€˜TabSeparatedโ€™, โ€˜JSONEachRowโ€™).
  • return_type (String) โ€” Function return type (e.g., โ€˜Stringโ€™, โ€˜UInt64โ€™).
  • return_name (String) โ€” Optional return value identifier. Empty if not configured.
  • argument_types (Array(String)) โ€” Array of argument types (e.g., [โ€˜Stringโ€™, โ€˜UInt64โ€™]).
  • argument_names (Array(String)) โ€” Array of argument names. Empty strings for unnamed arguments.
  • max_command_execution_time (UInt64) โ€” Maximum seconds to process a data block. Only for โ€˜executable_poolโ€™ type.
  • command_termination_timeout (UInt64) โ€” Seconds before sending SIGTERM to command process.
  • command_read_timeout (UInt64) โ€” Milliseconds for reading from command stdout.
  • command_write_timeout (UInt64) โ€” Milliseconds for writing to command stdin.
  • pool_size (UInt64) โ€” Number of command process instances. Only for โ€˜executable_poolโ€™ type.
  • send_chunk_header (UInt8) โ€” Whether to send row count before each data chunk (boolean).
  • execute_direct (UInt8) โ€” Whether to execute command directly (1) or via /bin/bash (0).
  • lifetime (UInt64) โ€” Reload interval in seconds. 0 means reload is disabled.
  • deterministic (UInt8) โ€” Whether function returns the same result for the same arguments (boolean).

Example

View all UDFs and their loading status:
Find failed UDFs:

See Also

Last modified on September 8, 2026