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

Adds PartiQLFunction.Aggregation and updates Plugin interface #1310

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

rchowell
Copy link
Contributor

Relevant Issues

N/A

Description

This PR updates the Plugin inteface to use Kotlin fields and updates Plugin to return a single factory as multiple is not needed.

This PR also introduces the experimental definition of a PartiQLFunction.Aggregation which will be used for aggregation user-defined-functions.

Other Information

  • Updated Unreleased Section in CHANGELOG: [YES/NO]
    Yes

  • Any backward-incompatible changes? [YES/NO]
    Yes

  • Any new external dependencies? [YES/NO]
    No

  • Do your changes comply with the Contributing Guidelines
    and Code Style Guidelines? [YES/NO]
    Yes

License Information

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

github-actions bot commented Dec 15, 2023

Conformance comparison report

Base (5c1240c) a6301c7 +/-
% Passing 92.54% 92.54% 0.00%
✅ Passing 5384 5384 0
❌ Failing 434 434 0
🔶 Ignored 0 0 0
Total Tests 5818 5818 0

Number passing in both: 5384

Number failing in both: 434

Number passing in Base (5c1240c) but now fail: 0

Number failing in Base (5c1240c) but now pass: 0

@codecov-commenter
Copy link

codecov-commenter commented Dec 15, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (5c1240c) 72.36% compared to head (8850837) 72.16%.

Files Patch % Lines
.../kotlin/org/partiql/cli/utils/ServiceLoaderUtil.kt 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1310      +/-   ##
============================================
- Coverage     72.36%   72.16%   -0.20%     
+ Complexity     2099     2097       -2     
============================================
  Files           221      221              
  Lines         15973    15974       +1     
  Branches       2892     2892              
============================================
- Hits          11559    11528      -31     
- Misses         3599     3640      +41     
+ Partials        815      806       -9     
Flag Coverage Δ
CLI 11.86% <0.00%> (-1.56%) ⬇️
EXAMPLES 80.28% <ø> (ø)
LANG 80.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

johnedquinn
johnedquinn previously approved these changes Dec 15, 2023
Copy link
Member

@johnedquinn johnedquinn left a comment

Choose a reason for hiding this comment

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

LGTM. Good work!

* @param config
* @return
*/
public fun create(catalogName: String, config: StructElement? = null): Connector
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious how can the config be null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See memory connector which doesn't need a config. It's just extra options to pass the factory. If you're loading from a file or something the persisting options in a struct is useful, but memory connector just closes over its additional parameters.

Copy link
Contributor

@yliuuuu yliuuuu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks.

@rchowell rchowell merged commit 0a75bd3 into main Dec 15, 2023
@rchowell rchowell deleted the plugin-interfaces branch December 15, 2023 20:00
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.

4 participants