-
Notifications
You must be signed in to change notification settings - Fork 62
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
[1/2] Resolve functions from the catalog #1584
Conversation
CROSS-ENGINE Conformance Report ❌
Testing DetailsResult Details
Now Failing Tests ❌The complete list can be found in GitHub CI summary, either from Step Summary or in the Artifact. Now Passing TestsThe following 1 test(s) were previously FAILING in BASE but are now PASSING in TARGET. Before merging, confirm they are intended to pass: Click here to see
CROSS-COMMIT-EVAL Conformance Report ✅
Testing DetailsResult Details
CROSS-COMMIT-LEGACY Conformance Report ✅
Testing DetailsResult Details
|
c7da0b2
to
408cdcb
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v1 #1584 +/- ##
=====================================
Coverage ? 77.26%
Complexity ? 2470
=====================================
Files ? 253
Lines ? 18571
Branches ? 3491
=====================================
Hits ? 14349
Misses ? 3196
Partials ? 1026
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Just a small nit and question. Refactor looks good otherwise
* Returns a collection of scalar functions in this catalog with the given name, or an empty list if none. | ||
*/ | ||
public fun getFunctions(session: Session, name: String): Collection<Function> = SqlFnProvider.lookupFn(name) | ||
|
||
/** | ||
* Returns a collection of aggregation functions in this catalog with the given name, or an empty list if none. |
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.
nit: collection vs list
* Returns a collection of scalar functions in this catalog with the given name, or an empty list if none. | |
*/ | |
public fun getFunctions(session: Session, name: String): Collection<Function> = SqlFnProvider.lookupFn(name) | |
/** | |
* Returns a collection of aggregation functions in this catalog with the given name, or an empty list if none. | |
* Returns a collection of scalar functions in this catalog with the given name, or an empty collection if none. | |
*/ | |
public fun getFunctions(session: Session, name: String): Collection<Function> = SqlFnProvider.lookupFn(name) | |
/** | |
* Returns a collection of aggregation functions in this catalog with the given name, or an empty collection if none. |
/** | ||
* TODO REMOVE ME ?? | ||
*/ | ||
public fun getSpecific(): String |
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.
Will this be kept for v1
or is it just used as part of the refactoring process?
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.
Part of refactoring, removed in next PR
Relevant Issues
#1496
Description
This Part 1 of 2 – the second part will remove SqlFnProvider entirely.
This PR removes direct calls to the SqlFnProvider for lookup ONLY as a piecewise step towards implementing the PartiQL-PATH in which we search the session PATH for the function names. The implementations are still provided via lookup by specific.
Names
The following changes are incremental,
I have a follow-up issue for recent discussion points, #1585.
Other Information
and Code Style Guidelines? YES
License Information
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.