-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Fn, FnProvider, Agg, and AggProvider APIs (#1722)
* Adds FnProvider, Fn, AggProvider, and Agg * Adds a RoutineSignature and RoutineProviderSignature * Adds scalar and aggregate function builders * Updates existing function implementations to use new APIs * Updates RelOpAggregate and ExprCallDynamic to use arrays * Adds minor coercion logic for aggregations
- Loading branch information
1 parent
5b1eca6
commit f3a65ff
Showing
85 changed files
with
1,656 additions
and
1,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/Aggregate.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package org.partiql.eval.internal.operator | ||
|
||
import org.partiql.eval.ExprValue | ||
import org.partiql.spi.function.Aggregation | ||
import org.partiql.spi.function.Agg | ||
|
||
/** | ||
* Simple data class to hold a compile aggregation call. | ||
*/ | ||
internal class Aggregate( | ||
val agg: Aggregation, | ||
val agg: Agg, | ||
val args: List<ExprValue>, | ||
val distinct: Boolean | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.