Skip to content

feat: add function_metadata() datasource function#51

Open
Vivek1106-04 wants to merge 3 commits into
apache:masterfrom
Vivek1106-04:feature/function-metadata-datasource
Open

feat: add function_metadata() datasource function#51
Vivek1106-04 wants to merge 3 commits into
apache:masterfrom
Vivek1106-04:feature/function-metadata-datasource

Conversation

@Vivek1106-04

Copy link
Copy Markdown

Adds a builtin datasource function that exposes the runtime function registry as queryable rows: { name, arity, category, private }. Category is derived from existing engine predicates (window, aggregate, aggregate-scalar, unnest, datasource, scalar), letting clients filter instead of hardcoding function lists.

  • BuiltinFunctions.getBuiltinFunctionIdentifiers(): read-only registry accessor
  • FunctionMetadata{Rewriter,Datasource,Function,Reader}: modeled on jobs()/active_requests()
  • registered (public) in MetadataBuiltinFunctions
  • runtime test under misc/function_metadata

Change-Id: I58db212ca4876e634e1e28fca37f75f96f087c6d

Adds a builtin datasource function that exposes the runtime function
registry as queryable rows: { name, arity, category, private }.
Category is derived from existing engine predicates (window, aggregate,
aggregate-scalar, unnest, datasource, scalar), letting clients filter
instead of hardcoding function lists.

- BuiltinFunctions.getBuiltinFunctionIdentifiers(): read-only registry accessor
- FunctionMetadata{Rewriter,Datasource,Function,Reader}: modeled on jobs()/active_requests()
- registered (public) in MetadataBuiltinFunctions
- runtime test under misc/function_metadata

Change-Id: I58db212ca4876e634e1e28fca37f75f96f087c6d
Change-Id: I67524655033cfeeb86e026b4a3cacdb8b8bfd244
… fix datasource category

Change-Id: I4c8647c30caf34a8b302830e7cb567629719c852
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant