Function Namespace Managers

Warn This feature is developing now. So some interfaces and configuration may be changed in the next version.

Introduction

Function Namespace Managers support storing external function, and the external functions which register from connectors will be stored in it. A function namespace is in the format of catalog.schema(For example:mysqlfun.default). It is only a schema for storing function, but not for storing table and view. Every function in openLooKeng, no matter built in function or external function, belongs to a function namespace catalog.schema. The built in function belong to presto.default. The external function belong to a function namespace which is supplied by the user, for example:mysqlfun.default. All of the built in function must be used with the function namespace omitted, for example:select count(*) from .... The external function must be used with a full qualified name, for example: select mysqlfun.default.format(...) from ....

Every instance of Function Namespace Manager related to a catalog, and manage all the function qualified by it. We suggest that do not use a same name as the Connector catalog.

Mount Function Namespace Manager Instance

If we want to mount a Function Namespace Manager Instance named mysqlfun, we can add a property file named etc/function-namespace/mysqlfun.properties which following contents:

    function-namespace-manager.name=memory
    supported-function-languages=JDBC

Now we only support Function Namespace Manager named memory. The function information stored in the manager will lose after we restart the openLooKeng. The configuration propertysupported-function-languages declare function kind the function manager support. Now we only support JDBC.

Mount Multiple Function Namespace Manager Instances

We need to add different property files to mount multiple function namespace managers to manage different catalog.

Register External Functions to Function Namespace Manager

Now openLooKeng support register external function from Jdbc Connector which extends from presto-base-jdbc. For more information, please refer to: External Function Registration and Push Down

External Function Push Down

Now openLooKeng support to push external function down to data source. For more information, please refer to: External Function Registration and Push Down

Notes External functions only support to push down to data source to execute. If an external function cannot push down to data source, the query with external function will fail.

有奖捉虫

“有虫”文档片段

0/500

存在的问题

文档存在风险与错误

● 拼写,格式,无效链接等错误;

● 技术原理、功能、规格等描述和软件不一致,存在错误;

● 原理图、架构图等存在错误;

● 版本号不匹配:文档版本或内容描述和实际软件不一致;

● 对重要数据或系统存在风险的操作,缺少安全提示;

● 排版不美观,影响阅读;

内容描述不清晰

● 描述存在歧义;

● 图形、表格、文字等晦涩难懂;

● 逻辑不清晰,该分类、分项、分步骤的没有给出;

内容获取有困难

● 很难通过搜索引擎,openLooKeng官网,相关博客找到所需内容;

示例代码有错误

● 命令、命令参数等错误;

● 命令无法执行或无法完成对应功能;

内容有缺失

● 关键步骤错误或缺失,无法指导用户完成任务,比如安装、配置、部署等;

● 逻辑不清晰,该分类、分项、分步骤的没有给出

● 图形、表格、文字等晦涩难懂

● 缺少必要的前提条件、注意事项等;

● 描述存在歧义

0/500

您对文档的总体满意度

非常不满意
非常满意

请问是什么原因让您参与到这个问题中

您的邮箱

创Issue赢奖品
根据您的反馈,会自动生成issue模板。您只需点击按钮,创建issue即可。
有奖捉虫