[native] Add presto.default-namespace Prestissimo config property#23384
[native] Add presto.default-namespace Prestissimo config property#23384pdabre12 wants to merge 1 commit intoprestodb:masterfrom
Conversation
|
|
|
Suggestions:
|
b685c5a to
77bb53e
Compare
77bb53e to
807baa9
Compare
steveburnett
left a comment
There was a problem hiding this comment.
Thanks for the doc!
807baa9 to
f63e801
Compare
|
@aditi-pandit @czentgr Please take a look. |
steveburnett
left a comment
There was a problem hiding this comment.
LGTM! (docs)
Pull branch, new local build, looks good. Thanks!
|
@steveburnett Thank you for the review ! |
aditi-pandit
left a comment
There was a problem hiding this comment.
@pdabre12 : Thanks for this PR. Have one high level question.
| {"presto.default.$operator$equal", "presto.default.eq"}, | ||
| {"presto.default.$operator$greater_than", "presto.default.gt"}, | ||
| {"presto.default.$operator$greater_than_or_equal", "presto.default.gte"}, | ||
| {"presto.default.$operator$add", |
There was a problem hiding this comment.
@pdabre12 : High level question about this... Should we be using prestoDefaultNamespacePrefix for the key function name in Velox as well ? Since we are registering functions with this prefix, then it should be used here as well.
There was a problem hiding this comment.
@aditi-pandit You are right. Thank you for catching this.
Updated my PR.
There was a problem hiding this comment.
@aditi-pandit Reverted the changes related to the operators and magic literal functions. These functions aren't reported by Prestissimo. Since, these don't get reported by Prestissimo they won't be present in the namespace specified by the presto.default-namespace property for eg. native.default namespace. As the operator types and magic literal functions are always passed down by the Java coordinator, it can be a fair assumption that they will have the presto.default namespace prefix.
e27ee55 to
dfa53df
Compare
aditi-pandit
left a comment
There was a problem hiding this comment.
@pdabre12 : Would be great to add a unit test for this logic as well.
One possible test could be to retrieve all functions from Velox and check they have the default namespace.
| {"presto.default.$operator$not_equal", "presto.default.neq"}, | ||
| {"presto.default.$operator$subtract", "presto.default.minus"}, | ||
| {"presto.default.$operator$subscript", "presto.default.subscript"}, | ||
| {fmt::format("{}$operator$add", prestoDefaultNamespacePrefix), |
There was a problem hiding this comment.
Write an inline function to add the defaultNamespacePrefix to both the operator name and Velox function name and use it for all entries below.
| "presto.default.max_data_size_for_stats"}, | ||
| {"presto.default.$internal$sum_data_size_for_stats", | ||
| "presto.default.sum_data_size_for_stats"}, | ||
| {fmt::format( |
There was a problem hiding this comment.
Write an inline function for adding the defaultNamespacePrefix to the function name and use it everywhere.
dfa53df to
1379c6c
Compare
1379c6c to
48710fd
Compare
|
@aditi-pandit Thanks for the review. |
|
Closing as completed via #23358. |
Description
Adds the
presto.default-namespaceconfig property.Resolves: #23385
Release Notes
Please follow release notes guidelines and fill in the release notes below.