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 function management abstractions #10378

Merged
merged 7 commits into from
Mar 13, 2022
Merged

Conversation

dain
Copy link
Member

@dain dain commented Dec 22, 2021

Description

Refactoring of internal APIs in preparation to move move the internal function APIs to the SPI package.

General information

Is this change a fix, improvement, new feature, refactoring, or other?
refactoring

Is this a change to the core query engine, a connector, client library, or the
SPI interfaces (be specific)?
core engine

How would you describe this change to a non-technical end user or system
administrator?
N/A

Related issues, pull requests, and links

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

@dain dain requested a review from electrum December 22, 2021 00:06
@cla-bot cla-bot bot added the cla-signed label Dec 22, 2021
@dain dain changed the title Add function catalog abstraction Add function management abstractions Dec 22, 2021
@dain dain force-pushed the add-function-catalog branch from 0eeeed4 to 00c22e6 Compare December 22, 2021 04:37
@dain dain force-pushed the add-function-catalog branch from 00c22e6 to 1c66331 Compare December 29, 2021 04:41
@dain dain force-pushed the add-function-catalog branch from 1c66331 to ba88058 Compare January 14, 2022 03:38
@martint martint self-requested a review February 1, 2022 20:48
@dain dain force-pushed the add-function-catalog branch 2 times, most recently from 67862c7 to 011bc82 Compare February 5, 2022 00:21
@@ -228,13 +228,13 @@ public static BytecodeNode generateLambda(
return block;
}

public static Class<? extends LambdaProvider> compileLambdaProvider(LambdaDefinitionExpression lambdaExpression, Metadata metadata, Class<?> lambdaInterface)
public static Class<? extends Supplier> compileLambdaProvider(LambdaDefinitionExpression lambdaExpression, Metadata metadata, Class<?> lambdaInterface)
Copy link
Member

Choose a reason for hiding this comment

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

Missing generics parameter for Supplier

Comment on lines 810 to 131
public List<FunctionMetadata> listFunctions()
{
return functions.list();
}

public Collection<FunctionMetadata> get(QualifiedName name)
public Collection<FunctionMetadata> getFunctions(QualifiedName name)
{
return functions.get(name);
}

public FunctionMetadata get(FunctionId functionId)
public FunctionMetadata getFunctionMetadata(FunctionId functionId)
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated changes? Not sure the name changes buy much. It was quite obvious what the old names refer to when used in the context of the FunctionRegistry (now GlobalFunctionCatalog)

@dain dain force-pushed the add-function-catalog branch from 011bc82 to 0e5bcbb Compare March 13, 2022 07:58
@dain
Copy link
Member Author

dain commented Mar 13, 2022

The two test failures are are spurious/flakes.

@dain dain merged commit fd76219 into trinodb:master Mar 13, 2022
@dain dain deleted the add-function-catalog branch March 13, 2022 19:28
@github-actions github-actions bot added this to the 374 milestone Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants