-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Conversation
0eeeed4
to
00c22e6
Compare
00c22e6
to
1c66331
Compare
1c66331
to
ba88058
Compare
67862c7
to
011bc82
Compare
@@ -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) |
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.
Missing generics parameter for Supplier
core/trino-main/src/main/java/io/trino/sql/planner/LocalExecutionPlanner.java
Outdated
Show resolved
Hide resolved
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) |
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.
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)
core/trino-main/src/main/java/io/trino/metadata/FunctionDependencies.java
Outdated
Show resolved
Hide resolved
011bc82
to
0e5bcbb
Compare
The two test failures are are spurious/flakes. |
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: