-
Notifications
You must be signed in to change notification settings - Fork 32
Add RFC to support custom schemas in native sidecar function registry #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
35d1130
to
0837366
Compare
0837366
to
e533bcb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one question
``` | ||
|
||
## Implementation Details | ||
- Functions are registered in Velox as `catalog.schema.function_name`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose built-ins do not have a namespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They do, they will be under the namespace specified by the config property presto.default-namespace
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Joe-Abraham .
Please change the RFC title to this Add RFC to support custom schemas in native sidecar function registry
or something similar.
RFC-0017-Support-custom-schemas-in-native-sidecar-function-registry.md
Outdated
Show resolved
Hide resolved
``` | ||
|
||
## Implementation Details | ||
- Functions are registered in Velox as `catalog.schema.function_name`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They do, they will be under the namespace specified by the config property presto.default-namespace
.
e533bcb
to
9a9c611
Compare
How does the function resolution handle the case when the native worker registers functions under a namespace and the coordinator registers functions under the same function namespace? I wonder if only one function catalog can be mapped to exactly one namespace manager. |
# etc/function-namespace/mycatalog.properties | ||
function-namespace-manager.name=native | ||
function-implementation-type=CPP | ||
supported-function-languages=CPP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do these 2 fields mean and what are the possible options for them ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function-implementation-type
- Indicates the language in which functions in this namespace are implemented. And it can take the following values
supported-function-languages
- Languages supported by the namespace manager.
I don't see any pre-list of values this config could take, In current codebase cpp
, sql
and java
are used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
However, I think the NativeFunctionNamespace
manager only supports CPP
.
Only one function catalog can map to one namespace manager, native worker functions use a parallel system through BuiltInFunctionHandle with different kinds to coexist with coordinator functions without catalog collision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Joe-Abraham
No description provided.