Skip to content
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

Add REST based Function Namespace Manager #23328

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abevk2023
Copy link
Contributor

@abevk2023 abevk2023 commented Jul 30, 2024

Adds RestBasedFunctionNamespaceManager which can retrieve the remote functions from a REST server

== NO RELEASE NOTE ==

@abevk2023 abevk2023 requested a review from a team as a code owner July 30, 2024 14:30
@abevk2023 abevk2023 changed the title Rest function namespace manager [WIP] Add Rest based function namespace manager Jul 30, 2024
@abevk2023 abevk2023 marked this pull request as draft July 30, 2024 14:33
@abevk2023 abevk2023 changed the title [WIP] Add Rest based function namespace manager [WIP] Add REST based Function Namespace Manager Jul 30, 2024
@tdcmeehan tdcmeehan self-assigned this Aug 1, 2024
@abevk2023 abevk2023 force-pushed the rest_function_namespace_manager branch from 154130d to 6237fc4 Compare August 7, 2024 12:57
@tdcmeehan
Copy link
Contributor

Can you document this endpoint using OpenAPI? #22982

@Override
public Collection<SqlInvokedFunction> listFunctions(Optional<String> likePattern, Optional<String> escape)
{
return latestFunctions.values();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the above two methods are OK to not implement for now, but this needs to be implemented.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoided caching the list of functions.

@abevk2023 abevk2023 force-pushed the rest_function_namespace_manager branch 4 times, most recently from 2143320 to 4395f82 Compare August 13, 2024 12:21
@abevk2023 abevk2023 marked this pull request as ready for review August 13, 2024 14:34
@abevk2023 abevk2023 force-pushed the rest_function_namespace_manager branch from 4395f82 to e70e3e7 Compare August 16, 2024 05:42
@abevk2023 abevk2023 marked this pull request as draft August 22, 2024 07:22
@abevk2023 abevk2023 force-pushed the rest_function_namespace_manager branch 4 times, most recently from 3fa0650 to bcbd009 Compare August 29, 2024 12:48
@abevk2023 abevk2023 marked this pull request as ready for review August 29, 2024 12:48
@abevk2023 abevk2023 requested a review from a team as a code owner August 29, 2024 12:48
@abevk2023 abevk2023 changed the title [WIP] Add REST based Function Namespace Manager Add REST based Function Namespace Manager Aug 29, 2024
@abevk2023 abevk2023 force-pushed the rest_function_namespace_manager branch from bcbd009 to 27a609e Compare August 30, 2024 06:45
*/
package com.facebook.presto.functionNamespace;

public interface FunctionsApi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why we need this interface? Can't we just use a concrete class?

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.

None yet

2 participants