-
Notifications
You must be signed in to change notification settings - Fork 61
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 Fn, FnProvider, Agg, and AggProvider APIs #1722
Conversation
7ad1acc
to
609f1ea
Compare
partiql-spi/src/main/java/org/partiql/spi/function/FnProvider.java
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/java/org/partiql/spi/function/FnProvider.java
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/java/org/partiql/spi/function/AggProvider.java
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/java/org/partiql/spi/function/FnProvider.java
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/kotlin/org/partiql/spi/function/Aggregation.kt
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/kotlin/org/partiql/spi/function/Function.kt
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/kotlin/org/partiql/spi/function/Builtins.kt
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/java/org/partiql/spi/function/RoutineProviderSignature.java
Outdated
Show resolved
Hide resolved
609f1ea
to
8bd06ff
Compare
partiql-spi/src/main/kotlin/org/partiql/spi/function/Aggregation.kt
Outdated
Show resolved
Hide resolved
partiql-spi/src/main/kotlin/org/partiql/spi/function/Aggregation.kt
Outdated
Show resolved
Hide resolved
0ab406b
to
dfb15e0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1722 +/- ##
=========================================
Coverage 80.03% 80.03%
Complexity 47 47
=========================================
Files 19 19
Lines 506 506
Branches 23 23
=========================================
Hits 405 405
Misses 88 88
Partials 13 13
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.
latest changes lgtm. seems like there's a slight conformance regression with this PR -- https://github.com/partiql/partiql-lang-kotlin/actions/runs/12917164270. could we verify we're not introducing any behavior changes?
Adds a RoutineSignature and RoutineProviderSignature Adds a RoutineProviderParam Adds scalar and aggregate function builders Updates existing function implementations to use new APIs
Removes the RoutineProviderParameter in favor of PType Updates Javadocs Renames internal SUBSTRING name
239cdb4
to
4f089b2
Compare
fba3757
to
fb9b637
Compare
p.type.code() == a.code() -> continue | ||
a.code() == PType.DYNAMIC -> mapping[i] = Ref.Cast(a.toCType(), p.type.toCType(), Ref.Cast.Safety.COERCION, true) | ||
p.type.code() == PType.DYNAMIC -> continue | ||
else -> mapping[i] = coercion(a, p.type) ?: return null |
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.
could we add a small comment/description of what these additional branches are for?
Description
Reviewing
License Information
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.