diff --git a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Compiler.kt b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Compiler.kt index 34bb74a0c7..d5cd75689c 100644 --- a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Compiler.kt +++ b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Compiler.kt @@ -56,7 +56,7 @@ import org.partiql.plan.Rex import org.partiql.plan.Statement import org.partiql.plan.debug.PlanPrinter import org.partiql.plan.visitor.PlanBaseVisitor -import org.partiql.planner.internal.fn.Agg +import org.partiql.spi.fn.Agg import org.partiql.types.PType import org.partiql.value.PartiQLValueExperimental import java.lang.IllegalStateException diff --git a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Symbols.kt b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Symbols.kt index d45b13d726..8175e74064 100644 --- a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Symbols.kt +++ b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/Symbols.kt @@ -6,11 +6,11 @@ import org.partiql.eval.internal.operator.rex.ExprVarGlobal import org.partiql.plan.Catalog import org.partiql.plan.PartiQLPlan import org.partiql.plan.Ref -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.SqlFnProvider import org.partiql.spi.connector.ConnectorBindings import org.partiql.spi.connector.ConnectorPath +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.SqlFnProvider /** * diff --git a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/Operator.kt b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/Operator.kt index 0590dcea1b..e4abd8f40e 100644 --- a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/Operator.kt +++ b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/Operator.kt @@ -3,7 +3,7 @@ package org.partiql.eval.internal.operator import org.partiql.eval.internal.Environment import org.partiql.eval.internal.Record import org.partiql.eval.value.Datum -import org.partiql.planner.internal.fn.Agg +import org.partiql.spi.fn.Agg internal sealed interface Operator { diff --git a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rel/RelAggregate.kt b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rel/RelAggregate.kt index cf1cd99c57..1a230f5fb9 100644 --- a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rel/RelAggregate.kt +++ b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rel/RelAggregate.kt @@ -4,7 +4,7 @@ import org.partiql.eval.internal.Environment import org.partiql.eval.internal.Record import org.partiql.eval.internal.operator.Operator import org.partiql.eval.value.Datum -import org.partiql.planner.internal.fn.Agg +import org.partiql.spi.fn.Agg import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType diff --git a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamic.kt b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamic.kt index 53f0f185fd..217055afa0 100644 --- a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamic.kt +++ b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamic.kt @@ -5,7 +5,7 @@ import org.partiql.eval.internal.Environment import org.partiql.eval.internal.operator.Operator import org.partiql.eval.value.Datum import org.partiql.plan.Ref -import org.partiql.planner.internal.fn.Fn +import org.partiql.spi.fn.Fn import org.partiql.types.PType import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallStatic.kt b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallStatic.kt index c4cc765910..ed7c4076f4 100644 --- a/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallStatic.kt +++ b/partiql-eval/src/main/kotlin/org/partiql/eval/internal/operator/rex/ExprCallStatic.kt @@ -3,7 +3,7 @@ package org.partiql.eval.internal.operator.rex import org.partiql.eval.internal.Environment import org.partiql.eval.internal.operator.Operator import org.partiql.eval.value.Datum -import org.partiql.planner.internal.fn.Fn +import org.partiql.spi.fn.Fn import org.partiql.value.PartiQLValueExperimental @OptIn(PartiQLValueExperimental::class) diff --git a/partiql-eval/src/test/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamicTest.kt b/partiql-eval/src/test/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamicTest.kt index 80e7836e9b..6b764d85bf 100644 --- a/partiql-eval/src/test/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamicTest.kt +++ b/partiql-eval/src/test/kotlin/org/partiql/eval/internal/operator/rex/ExprCallDynamicTest.kt @@ -13,9 +13,9 @@ import org.partiql.eval.value.Datum.boolValue import org.partiql.eval.value.Datum.int32Value import org.partiql.eval.value.Datum.listValue import org.partiql.eval.value.Datum.stringValue -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType diff --git a/partiql-planner/api/partiql-planner.api b/partiql-planner/api/partiql-planner.api index 0b46df75de..461c06d269 100644 --- a/partiql-planner/api/partiql-planner.api +++ b/partiql-planner/api/partiql-planner.api @@ -321,87 +321,3 @@ public final class org/partiql/planner/catalog/Table$Handle { public fun (Lorg/partiql/planner/catalog/Name;Lorg/partiql/planner/catalog/Table;)V } -public abstract interface class org/partiql/planner/internal/fn/Agg { - public abstract fun accumulator ()Lorg/partiql/planner/internal/fn/Agg$Accumulator; - public abstract fun getSignature ()Lorg/partiql/planner/internal/fn/AggSignature; -} - -public abstract interface class org/partiql/planner/internal/fn/Agg$Accumulator { - public abstract fun next ([Lorg/partiql/value/PartiQLValue;)V - public abstract fun value ()Lorg/partiql/value/PartiQLValue; -} - -public final class org/partiql/planner/internal/fn/AggSignature { - public final field description Ljava/lang/String; - public final field isDecomposable Z - public final field isNullable Z - public final field name Ljava/lang/String; - public final field parameters Ljava/util/List; - public final field returns Lorg/partiql/types/PType; - public fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZ)V - public synthetic fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZ)V - public synthetic fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun equals (Ljava/lang/Object;)Z - public final fun getSpecific ()Ljava/lang/String; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public abstract interface class org/partiql/planner/internal/fn/Fn { - public abstract fun getSignature ()Lorg/partiql/planner/internal/fn/FnSignature; - public abstract fun invoke ([Lorg/partiql/value/PartiQLValue;)Lorg/partiql/value/PartiQLValue; -} - -public final class org/partiql/planner/internal/fn/FnParameter { - public fun (Ljava/lang/String;Lorg/partiql/types/PType;)V - public fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Lorg/partiql/types/PType; - public final fun copy (Ljava/lang/String;Lorg/partiql/types/PType;)Lorg/partiql/planner/internal/fn/FnParameter; - public static synthetic fun copy$default (Lorg/partiql/planner/internal/fn/FnParameter;Ljava/lang/String;Lorg/partiql/types/PType;ILjava/lang/Object;)Lorg/partiql/planner/internal/fn/FnParameter; - public fun equals (Ljava/lang/Object;)Z - public final fun getName ()Ljava/lang/String; - public final fun getType ()Lorg/partiql/types/PType; - public fun hashCode ()I - public fun toString ()Ljava/lang/String; -} - -public final class org/partiql/planner/internal/fn/FnSignature { - public final field description Ljava/lang/String; - public final field isDeterministic Z - public final field isMissable Z - public final field isMissingCall Z - public final field isNullCall Z - public final field isNullable Z - public final field name Ljava/lang/String; - public final field parameters Ljava/util/List; - public final field returns Lorg/partiql/types/PType; - public fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZ)V - public synthetic fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZILkotlin/jvm/internal/DefaultConstructorMarker;)V - public fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZZZZ)V - public synthetic fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZZZZILkotlin/jvm/internal/DefaultConstructorMarker;)V - public final fun component1 ()Ljava/lang/String; - public final fun component2 ()Lorg/partiql/types/PType; - public final fun component3 ()Ljava/util/List; - public final fun component4 ()Ljava/lang/String; - public final fun component5 ()Z - public final fun component6 ()Z - public final fun component7 ()Z - public final fun component8 ()Z - public final fun component9 ()Z - public final fun copy (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZ)Lorg/partiql/planner/internal/fn/FnSignature; - public static synthetic fun copy$default (Lorg/partiql/planner/internal/fn/FnSignature;Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZILjava/lang/Object;)Lorg/partiql/planner/internal/fn/FnSignature; - public fun equals (Ljava/lang/Object;)Z - public final fun getSpecific ()Ljava/lang/String; - public fun hashCode ()I - public final fun sql ()Ljava/lang/String; - public fun toString ()Ljava/lang/String; -} - -public final class org/partiql/planner/internal/fn/SqlFnProvider { - public static final field INSTANCE Lorg/partiql/planner/internal/fn/SqlFnProvider; - public final fun getAgg (Ljava/lang/String;)Lorg/partiql/planner/internal/fn/Agg; - public final fun getFn (Ljava/lang/String;)Lorg/partiql/planner/internal/fn/Fn; -} - diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/Env.kt b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/Env.kt index 48a9597010..c9e98aae7f 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/Env.kt +++ b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/Env.kt @@ -4,8 +4,6 @@ import org.partiql.planner.catalog.Name import org.partiql.planner.catalog.Session import org.partiql.planner.internal.casts.CastTable import org.partiql.planner.internal.casts.Coercions -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.SqlFnProvider import org.partiql.planner.internal.ir.Ref import org.partiql.planner.internal.ir.Rel import org.partiql.planner.internal.ir.Rex @@ -22,6 +20,8 @@ import org.partiql.planner.internal.typer.CompilerType import org.partiql.planner.internal.typer.Scope.Companion.toPath import org.partiql.spi.BindingPath import org.partiql.spi.connector.ConnectorMetadata +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.SqlFnProvider import org.partiql.types.PType import org.partiql.types.PType.Kind diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnComparator.kt b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnComparator.kt index 5996c59621..23a08fb977 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnComparator.kt +++ b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnComparator.kt @@ -1,7 +1,7 @@ package org.partiql.planner.internal -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.types.PType import org.partiql.types.PType.Kind diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnMatch.kt b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnMatch.kt index cf6d1336e3..7107b6eb63 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnMatch.kt +++ b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnMatch.kt @@ -1,7 +1,7 @@ package org.partiql.planner.internal -import org.partiql.planner.internal.fn.FnSignature import org.partiql.planner.internal.ir.Ref +import org.partiql.spi.fn.FnSignature /** * Result of matching an unresolved function. diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnResolver.kt b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnResolver.kt index a7c6c2f9bd..f24a289f3f 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnResolver.kt +++ b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/FnResolver.kt @@ -1,10 +1,10 @@ package org.partiql.planner.internal import org.partiql.planner.internal.casts.Coercions -import org.partiql.planner.internal.fn.FnSignature import org.partiql.planner.internal.ir.Ref import org.partiql.planner.internal.typer.CompilerType import org.partiql.planner.internal.typer.PlanTyper.Companion.toCType +import org.partiql.spi.fn.FnSignature import org.partiql.types.PType.Kind /** diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/ir/Nodes.kt b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/ir/Nodes.kt index a806dc1ac0..7c502cd050 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/ir/Nodes.kt +++ b/partiql-planner/src/main/kotlin/org/partiql/planner/internal/ir/Nodes.kt @@ -5,8 +5,8 @@ package org.partiql.planner.`internal`.ir import org.partiql.errors.Problem import org.partiql.planner.catalog.Identifier import org.partiql.planner.catalog.Name -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnSignature import org.partiql.planner.internal.ir.builder.PartiQlPlanBuilder import org.partiql.planner.internal.ir.builder.RefAggBuilder import org.partiql.planner.internal.ir.builder.RefCastBuilder diff --git a/partiql-planner/src/main/resources/partiql_plan_internal.ion b/partiql-planner/src/main/resources/partiql_plan_internal.ion index 234e855d29..e4bc767c83 100644 --- a/partiql-planner/src/main/resources/partiql_plan_internal.ion +++ b/partiql-planner/src/main/resources/partiql_plan_internal.ion @@ -5,8 +5,8 @@ imports::{ partiql_value::'org.partiql.value.PartiQLValue', partiql_value_type::'org.partiql.planner.internal.typer.CompilerType', static_type::'org.partiql.planner.internal.typer.CompilerType', - fn_signature::'org.partiql.planner.internal.fn.FnSignature', - agg_signature::'org.partiql.planner.internal.fn.AggSignature', + fn_signature::'org.partiql.spi.fn.FnSignature', + agg_signature::'org.partiql.spi.fn.AggSignature', problem::'org.partiql.errors.Problem' ], } diff --git a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FnResolverTest.kt b/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FnResolverTest.kt index 35df0b254b..afe96b2120 100644 --- a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FnResolverTest.kt +++ b/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FnResolverTest.kt @@ -4,9 +4,9 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.fail import org.partiql.planner.internal.FnMatch import org.partiql.planner.internal.FnResolver -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature import org.partiql.planner.internal.typer.PlanTyper.Companion.toCType +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.types.PType import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType diff --git a/partiql-spi/api/partiql-spi.api b/partiql-spi/api/partiql-spi.api index 217702a940..d496ae8f8a 100644 --- a/partiql-spi/api/partiql-spi.api +++ b/partiql-spi/api/partiql-spi.api @@ -115,3 +115,89 @@ public final class org/partiql/spi/connector/Constants { public static final field INSTANCE Lorg/partiql/spi/connector/Constants; } +public abstract interface class org/partiql/spi/fn/Agg { + public abstract fun accumulator ()Lorg/partiql/spi/fn/Agg$Accumulator; + public abstract fun getSignature ()Lorg/partiql/spi/fn/AggSignature; +} + +public abstract interface class org/partiql/spi/fn/Agg$Accumulator { + public abstract fun next ([Lorg/partiql/value/PartiQLValue;)V + public abstract fun value ()Lorg/partiql/value/PartiQLValue; +} + +public final class org/partiql/spi/fn/AggSignature { + public final field description Ljava/lang/String; + public final field isDecomposable Z + public final field isNullable Z + public final field name Ljava/lang/String; + public final field parameters Ljava/util/List; + public final field returns Lorg/partiql/types/PType; + public fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZ)V + public synthetic fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZ)V + public synthetic fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun equals (Ljava/lang/Object;)Z + public final fun getSpecific ()Ljava/lang/String; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public abstract interface class org/partiql/spi/fn/Fn { + public abstract fun getSignature ()Lorg/partiql/spi/fn/FnSignature; + public abstract fun invoke ([Lorg/partiql/value/PartiQLValue;)Lorg/partiql/value/PartiQLValue; +} + +public final class org/partiql/spi/fn/FnParameter { + public fun (Ljava/lang/String;Lorg/partiql/types/PType;)V + public fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;)V + public final fun component1 ()Ljava/lang/String; + public final fun component2 ()Lorg/partiql/types/PType; + public final fun copy (Ljava/lang/String;Lorg/partiql/types/PType;)Lorg/partiql/spi/fn/FnParameter; + public static synthetic fun copy$default (Lorg/partiql/spi/fn/FnParameter;Ljava/lang/String;Lorg/partiql/types/PType;ILjava/lang/Object;)Lorg/partiql/spi/fn/FnParameter; + public fun equals (Ljava/lang/Object;)Z + public final fun getName ()Ljava/lang/String; + public final fun getType ()Lorg/partiql/types/PType; + public fun hashCode ()I + public fun toString ()Ljava/lang/String; +} + +public final class org/partiql/spi/fn/FnSignature { + public final field description Ljava/lang/String; + public final field isDeterministic Z + public final field isMissable Z + public final field isMissingCall Z + public final field isNullCall Z + public final field isNullable Z + public final field name Ljava/lang/String; + public final field parameters Ljava/util/List; + public final field returns Lorg/partiql/types/PType; + public fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZ)V + public synthetic fun (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZILkotlin/jvm/internal/DefaultConstructorMarker;)V + public fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZZZZ)V + public synthetic fun (Ljava/lang/String;Lorg/partiql/value/PartiQLValueType;Ljava/util/List;Ljava/lang/String;ZZZZZILkotlin/jvm/internal/DefaultConstructorMarker;)V + public final fun component1 ()Ljava/lang/String; + public final fun component2 ()Lorg/partiql/types/PType; + public final fun component3 ()Ljava/util/List; + public final fun component4 ()Ljava/lang/String; + public final fun component5 ()Z + public final fun component6 ()Z + public final fun component7 ()Z + public final fun component8 ()Z + public final fun component9 ()Z + public final fun copy (Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZ)Lorg/partiql/spi/fn/FnSignature; + public static synthetic fun copy$default (Lorg/partiql/spi/fn/FnSignature;Ljava/lang/String;Lorg/partiql/types/PType;Ljava/util/List;Ljava/lang/String;ZZZZZILjava/lang/Object;)Lorg/partiql/spi/fn/FnSignature; + public fun equals (Ljava/lang/Object;)Z + public final fun getSpecific ()Ljava/lang/String; + public fun hashCode ()I + public final fun sql ()Ljava/lang/String; + public fun toString ()Ljava/lang/String; +} + +public final class org/partiql/spi/fn/SqlFnProvider { + public static final field INSTANCE Lorg/partiql/spi/fn/SqlFnProvider; + public final fun getAgg (Ljava/lang/String;)Lorg/partiql/spi/fn/Agg; + public final fun getFn (Ljava/lang/String;)Lorg/partiql/spi/fn/Fn; + public final fun lookupAgg (Ljava/lang/String;)Ljava/util/List; + public final fun lookupFn (Ljava/lang/String;)Ljava/util/List; +} + diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/Agg.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/Agg.kt similarity index 95% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/Agg.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/Agg.kt index 8119a1f220..2ade2f23ae 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/Agg.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/Agg.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/AggSignature.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/AggSignature.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/AggSignature.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/AggSignature.kt index 76103cef56..ccfcbbd9ae 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/AggSignature.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/AggSignature.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn import org.partiql.types.PType import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/Fn.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/Fn.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/Fn.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/Fn.kt index 02dd3bef62..265095110a 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/Fn.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/Fn.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/FnParameter.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/FnParameter.kt similarity index 93% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/FnParameter.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/FnParameter.kt index 47c44c3402..a3ba8d29ed 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/FnParameter.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/FnParameter.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn import org.partiql.types.PType import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/FnSignature.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/FnSignature.kt similarity index 99% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/FnSignature.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/FnSignature.kt index 82e48e8058..6d0cd392fa 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/FnSignature.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/FnSignature.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn import org.partiql.types.PType import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/SqlBuiltins.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/SqlBuiltins.kt similarity index 99% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/SqlBuiltins.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/SqlBuiltins.kt index a920ffc6fc..8f88966bab 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/SqlBuiltins.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/SqlBuiltins.kt @@ -1,7 +1,7 @@ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn /* ktlint-disable no-wildcard-imports */ -import org.partiql.planner.internal.fn.builtins.* +import org.partiql.spi.fn.builtins.* /** * This is where we will register all SQL builtins. For now, we wrap the generated header to keep the diff small. diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/SqlFnProvider.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/SqlFnProvider.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/SqlFnProvider.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/SqlFnProvider.kt index 7b52b6b6eb..d5c8b5d0eb 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/SqlFnProvider.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/SqlFnProvider.kt @@ -12,7 +12,7 @@ * language governing permissions and limitations under the License. */ -package org.partiql.planner.internal.fn +package org.partiql.spi.fn /** * TODO !! TEMPORARY AS FUNCTIONS ARE MOVED FROM CONNECTORS TO PLANNER. @@ -27,8 +27,8 @@ public object SqlFnProvider { // // INTERNAL PLANNER APIS // - internal fun lookupFn(name: String) = fnNameIndex[name] - internal fun lookupAgg(name: String) = aggNameIndex[name] + public fun lookupFn(name: String): List? = fnNameIndex[name] + public fun lookupAgg(name: String): List? = aggNameIndex[name] // // TEMPORARY PUBLIC EVALUATOR APIS diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggAny.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggAny.kt similarity index 78% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggAny.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggAny.kt index f28101941b..102051f508 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggAny.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggAny.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorAnySome +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorAnySome import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggAvg.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggAvg.kt similarity index 94% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggAvg.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggAvg.kt index 9cc1f7ea86..1db291b6c6 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggAvg.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggAvg.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorAvg +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorAvg import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.DECIMAL diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggCount.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggCount.kt similarity index 69% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggCount.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggCount.kt index 675035561f..47c95df1ea 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggCount.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggCount.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorCount +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorCount import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.INT64 diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggEvery.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggEvery.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggEvery.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggEvery.kt index 529128214b..471da16d23 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggEvery.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggEvery.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorEvery +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorEvery import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggGroupAs.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggGroupAs.kt similarity index 68% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggGroupAs.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggGroupAs.kt index acacf90491..b9f75f428b 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggGroupAs.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggGroupAs.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorGroupAs +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorGroupAs import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggMax.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggMax.kt similarity index 94% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggMax.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggMax.kt index b2148ba40a..3d478da217 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggMax.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggMax.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorMax +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorMax import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.DECIMAL_ARBITRARY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggMin.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggMin.kt similarity index 94% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggMin.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggMin.kt index dfa2af13f1..1ece12be7c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggMin.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggMin.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorMin +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorMin import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.DECIMAL_ARBITRARY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggSome.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggSome.kt similarity index 78% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggSome.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggSome.kt index 3a4eb6e67a..acb6571dc4 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggSome.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggSome.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorAnySome +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorAnySome import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggSum.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggSum.kt similarity index 94% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggSum.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggSum.kt index e34003157b..c9a35d8a6f 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/AggSum.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/AggSum.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.AggSignature -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorSum +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.AggSignature +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.builtins.internal.AccumulatorSum import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.DECIMAL_ARBITRARY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnAbs.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnAbs.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnAbs.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnAbs.kt index b862459804..3dd184a734 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnAbs.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnAbs.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnAnd.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnAnd.kt similarity index 86% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnAnd.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnAnd.kt index 4aca28cdeb..7e6a1969cc 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnAnd.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnAnd.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBetween.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBetween.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBetween.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBetween.kt index 2dc81fefd8..c65f096ebc 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBetween.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBetween.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.DateValue import org.partiql.value.DecimalValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBitLength.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBitLength.kt similarity index 91% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBitLength.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBitLength.kt index 9be33e5e06..ab956c9aaa 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBitLength.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBitLength.kt @@ -1,8 +1,8 @@ -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.Int32Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBitwiseAnd.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBitwiseAnd.kt similarity index 95% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBitwiseAnd.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBitwiseAnd.kt index 0864060e3c..2b0555bd61 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnBitwiseAnd.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnBitwiseAnd.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int16Value import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCardinality.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCardinality.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCardinality.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCardinality.kt index 1abe347040..e77581a75a 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCardinality.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCardinality.kt @@ -1,8 +1,8 @@ -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BagValue import org.partiql.value.ListValue import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCharLength.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCharLength.kt similarity index 91% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCharLength.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCharLength.kt index 1d93cbbcb5..0e9b8594c2 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCharLength.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCharLength.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.Int32Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCollAgg.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCollAgg.kt similarity index 75% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCollAgg.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCollAgg.kt index 194cb6a0f5..a5930241ce 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCollAgg.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCollAgg.kt @@ -1,20 +1,20 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Agg -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.builtins.internal.Accumulator -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorAnySome -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorAvg -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorCount -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorEvery -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorMax -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorMin -import org.partiql.planner.internal.fn.builtins.internal.AccumulatorSum +import org.partiql.spi.fn.Agg +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.builtins.internal.Accumulator +import org.partiql.spi.fn.builtins.internal.AccumulatorAnySome +import org.partiql.spi.fn.builtins.internal.AccumulatorAvg +import org.partiql.spi.fn.builtins.internal.AccumulatorCount +import org.partiql.spi.fn.builtins.internal.AccumulatorEvery +import org.partiql.spi.fn.builtins.internal.AccumulatorMax +import org.partiql.spi.fn.builtins.internal.AccumulatorMin +import org.partiql.spi.fn.builtins.internal.AccumulatorSum import org.partiql.value.BagValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnConcat.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnConcat.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnConcat.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnConcat.kt index f3a6105880..1689b269a4 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnConcat.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnConcat.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCurrentDate.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCurrentDate.kt similarity index 80% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCurrentDate.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCurrentDate.kt index fc16aff0ea..a34e229d56 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCurrentDate.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCurrentDate.kt @@ -1,10 +1,10 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.DATE diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCurrentUser.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCurrentUser.kt similarity index 81% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCurrentUser.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCurrentUser.kt index 734cb11d3a..ff3514087b 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnCurrentUser.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnCurrentUser.kt @@ -1,10 +1,10 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.STRING diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddDay.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddDay.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddDay.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddDay.kt index 04d88cfd71..e57231aada 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddDay.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddDay.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DateValue import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddHour.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddHour.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddHour.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddHour.kt index 220f25e3ec..049e72aa61 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddHour.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddHour.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int32Value import org.partiql.value.Int64Value import org.partiql.value.IntValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddMinute.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddMinute.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddMinute.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddMinute.kt index ce6e54d0ba..41d42b72e0 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddMinute.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddMinute.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int32Value import org.partiql.value.Int64Value import org.partiql.value.IntValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddMonth.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddMonth.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddMonth.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddMonth.kt index fd4777926c..bed8f18025 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddMonth.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddMonth.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DateValue import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddSecond.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddSecond.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddSecond.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddSecond.kt index e721000456..59e778e57e 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddSecond.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddSecond.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int32Value import org.partiql.value.Int64Value import org.partiql.value.IntValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddYear.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddYear.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddYear.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddYear.kt index 65fd3b0c7c..e9087c7d72 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateAddYear.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateAddYear.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DateValue import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffDay.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffDay.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffDay.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffDay.kt index a5bb15078a..9b52c26431 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffDay.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffDay.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.DATE diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffHour.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffHour.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffHour.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffHour.kt index b0d495a3c2..7c59386f50 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffHour.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffHour.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.INT64 diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffMinute.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffMinute.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffMinute.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffMinute.kt index 05af59afbd..45ba18b4f0 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffMinute.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffMinute.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.INT64 diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffMonth.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffMonth.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffMonth.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffMonth.kt index 35abc47e18..0743ac109e 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffMonth.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffMonth.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.DATE diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffSecond.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffSecond.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffSecond.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffSecond.kt index 5427480436..855ee5d908 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffSecond.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffSecond.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.INT64 diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffYear.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffYear.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffYear.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffYear.kt index e6490ac965..866ee2d492 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDateDiffYear.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDateDiffYear.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.DATE diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDivide.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDivide.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDivide.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDivide.kt index e1dc7ab362..f2a8161611 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnDivide.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnDivide.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnEq.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnEq.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnEq.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnEq.kt index f0dd12648f..c339b36d49 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnEq.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnEq.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnExists.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnExists.kt similarity index 93% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnExists.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnExists.kt index ba4b75ff68..e59fde2b78 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnExists.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnExists.kt @@ -1,8 +1,8 @@ -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BagValue import org.partiql.value.ListValue import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnExtract.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnExtract.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnExtract.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnExtract.kt index 6a50b82c64..def109ed79 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnExtract.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnExtract.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DateValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnGt.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnGt.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnGt.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnGt.kt index 396ac73579..7f464176a0 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnGt.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnGt.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.DateValue import org.partiql.value.DecimalValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnGte.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnGte.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnGte.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnGte.kt index a61a85023b..376e94e0eb 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnGte.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnGte.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.DateValue import org.partiql.value.DecimalValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnInCollection.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnInCollection.kt similarity index 99% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnInCollection.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnInCollection.kt index d750b45336..c179f2bff5 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnInCollection.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnInCollection.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BagValue import org.partiql.value.BinaryValue import org.partiql.value.BlobValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsAny.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsAny.kt similarity index 77% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsAny.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsAny.kt index 18544137c5..15be81a955 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsAny.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsAny.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBag.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBag.kt similarity index 78% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBag.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBag.kt index 9ee2ae399e..e97c2d74dc 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBag.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBag.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BagValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBinary.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBinary.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBinary.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBinary.kt index ed9d0f81d7..a99bf1f2cf 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBinary.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBinary.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BinaryValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBlob.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBlob.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBlob.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBlob.kt index ca46f50317..2c23dcd65c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBlob.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBlob.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BlobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBool.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBool.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBool.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBool.kt index b8cab9f458..20e4afeb5b 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsBool.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsBool.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsByte.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsByte.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsByte.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsByte.kt index 19f435a4fb..921b78b9e9 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsByte.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsByte.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ByteValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsChar.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsChar.kt similarity index 89% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsChar.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsChar.kt index a6cf30831c..45bf98a570 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsChar.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsChar.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.CharValue import org.partiql.value.Int32Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsClob.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsClob.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsClob.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsClob.kt index 6ea8a90bf8..68c9d5291a 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsClob.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsClob.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDate.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDate.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDate.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDate.kt index f19a929ae5..de08a97fdc 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDate.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDate.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DateValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDecimal.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDecimal.kt similarity index 93% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDecimal.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDecimal.kt index 8a7db8569d..4ef0008ec1 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDecimal.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDecimal.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Int32Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDecimalArbitrary.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDecimalArbitrary.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDecimalArbitrary.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDecimalArbitrary.kt index 818c428d45..73455102e2 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsDecimalArbitrary.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsDecimalArbitrary.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsFloat32.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsFloat32.kt similarity index 84% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsFloat32.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsFloat32.kt index 38b838bab8..69f17ebc3d 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsFloat32.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsFloat32.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Float32Value import org.partiql.value.Float64Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsFloat64.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsFloat64.kt similarity index 82% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsFloat64.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsFloat64.kt index e7d5bfcd89..a0226961bb 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsFloat64.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsFloat64.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Float32Value import org.partiql.value.Float64Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt.kt similarity index 84% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt.kt index c5482f9db3..ed34ffd649 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int16Value import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt16.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt16.kt similarity index 89% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt16.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt16.kt index 7ade6512e0..796cb03b16 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt16.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt16.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int16Value import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt32.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt32.kt similarity index 88% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt32.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt32.kt index dd8259847e..82220a6164 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt32.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt32.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int16Value import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt64.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt64.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt64.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt64.kt index 5f035f3392..5d00e38881 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt64.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt64.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int16Value import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt8.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt8.kt similarity index 89% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt8.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt8.kt index 09ac7f4d8f..4e78e001d0 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInt8.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInt8.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int16Value import org.partiql.value.Int32Value import org.partiql.value.Int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInterval.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInterval.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInterval.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInterval.kt index d6953454f0..1951e16c85 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsInterval.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsInterval.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.IntervalValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsList.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsList.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsList.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsList.kt index d21c8b1f13..8dda6985c8 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsList.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsList.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ListValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsMissing.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsMissing.kt similarity index 80% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsMissing.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsMissing.kt index 61aa437f94..2eb127811e 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsMissing.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsMissing.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.MissingValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsNull.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsNull.kt similarity index 82% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsNull.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsNull.kt index 0376567de3..a2469405dd 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsNull.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsNull.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsSexp.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsSexp.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsSexp.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsSexp.kt index fc8c74f4bd..fb73459635 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsSexp.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsSexp.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsString.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsString.kt similarity index 89% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsString.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsString.kt index b87f22ed8e..5dc76bdb36 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsString.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsString.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.Int32Value import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsStruct.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsStruct.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsStruct.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsStruct.kt index 5d05914740..f82b82f131 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsStruct.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsStruct.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsSymbol.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsSymbol.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsSymbol.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsSymbol.kt index f6304dbaf7..ea506a8d3a 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsSymbol.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsSymbol.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsTime.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsTime.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsTime.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsTime.kt index 7f7283347f..a1787ef20c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsTime.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsTime.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsTimestamp.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsTimestamp.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsTimestamp.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsTimestamp.kt index 49ffbc5f1c..fc9711808d 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnIsTimestamp.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnIsTimestamp.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.ANY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLike.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLike.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLike.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLike.kt index c5bf79f73f..f25dbcfaaf 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLike.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLike.kt @@ -1,13 +1,13 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.PatternUtils.matchRegexPattern -import org.partiql.planner.internal.fn.utils.PatternUtils.parsePattern +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.PatternUtils.matchRegexPattern +import org.partiql.spi.fn.utils.PatternUtils.parsePattern import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLikeEscape.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLikeEscape.kt similarity index 91% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLikeEscape.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLikeEscape.kt index 3733d50b5b..da0fd57b63 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLikeEscape.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLikeEscape.kt @@ -1,15 +1,15 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.PatternUtils -import org.partiql.planner.internal.fn.utils.PatternUtils.checkPattern -import org.partiql.planner.internal.fn.utils.PatternUtils.parsePattern +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.PatternUtils +import org.partiql.spi.fn.utils.PatternUtils.checkPattern +import org.partiql.spi.fn.utils.PatternUtils.parsePattern import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLower.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLower.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLower.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLower.kt index 3686befa52..e8f7c82d7a 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLower.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLower.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.CLOB diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLt.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLt.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLt.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLt.kt index d2337a8784..70a831f360 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLt.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLt.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.DateValue import org.partiql.value.DecimalValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLte.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLte.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLte.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLte.kt index 51be999572..d1047f63bf 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnLte.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnLte.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.DateValue import org.partiql.value.DecimalValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnMinus.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnMinus.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnMinus.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnMinus.kt index cd76e4a29a..d3511c93f4 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnMinus.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnMinus.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnModulo.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnModulo.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnModulo.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnModulo.kt index c4866f8560..f16af45026 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnModulo.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnModulo.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnNeg.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnNeg.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnNeg.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnNeg.kt index 479678f164..3c753d140c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnNeg.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnNeg.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnNot.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnNot.kt similarity index 80% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnNot.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnNot.kt index 82c35cd417..62ee94fc01 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnNot.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnNot.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnOctetLength.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnOctetLength.kt similarity index 91% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnOctetLength.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnOctetLength.kt index aef6315e11..ed55d75943 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnOctetLength.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnOctetLength.kt @@ -1,8 +1,8 @@ -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.Int32Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnOr.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnOr.kt similarity index 84% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnOr.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnOr.kt index 88e6367a59..d839e2c004 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnOr.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnOr.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BoolValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPlus.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPlus.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPlus.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPlus.kt index 77e1668178..4fdaf03772 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPlus.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPlus.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPos.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPos.kt similarity index 95% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPos.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPos.kt index 22991c9c6d..7b3974485f 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPos.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPos.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.DECIMAL_ARBITRARY diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPosition.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPosition.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPosition.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPosition.kt index 81558148f9..462ccdc344 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnPosition.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnPosition.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointPosition +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointPosition import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnSize.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnSize.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnSize.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnSize.kt index 2fc463297a..53895d1f17 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnSize.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnSize.kt @@ -1,8 +1,8 @@ -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.BagValue import org.partiql.value.ListValue import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnSubstring.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnSubstring.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnSubstring.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnSubstring.kt index cd5e68d81a..606c5bddbd 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnSubstring.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnSubstring.kt @@ -1,14 +1,14 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins import org.partiql.errors.DataException import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointSubstring +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointSubstring import org.partiql.value.ClobValue import org.partiql.value.Int64Value import org.partiql.value.PartiQLValue diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTimes.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTimes.kt similarity index 96% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTimes.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTimes.kt index b1e47bd905..7540a330fe 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTimes.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTimes.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.DecimalValue import org.partiql.value.Float32Value import org.partiql.value.Float64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrim.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrim.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrim.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrim.kt index 5fdb276541..32ceb9bab4 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrim.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrim.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointTrim +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointTrim import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimChars.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimChars.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimChars.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimChars.kt index 6a9a06fd8d..bb52f86b6d 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimChars.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimChars.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointTrim +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointTrim import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimLeading.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimLeading.kt similarity index 88% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimLeading.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimLeading.kt index 95d4003e7f..b1a3759207 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimLeading.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimLeading.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointTrimLeading +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointTrimLeading import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimLeadingChars.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimLeadingChars.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimLeadingChars.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimLeadingChars.kt index 858038bfd5..8e096b1b89 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimLeadingChars.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimLeadingChars.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointTrimLeading +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointTrimLeading import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimTrailing.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimTrailing.kt similarity index 88% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimTrailing.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimTrailing.kt index 9c3bb28985..822837ee82 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimTrailing.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimTrailing.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointTrimTrailing +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointTrimTrailing import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimTrailingChars.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimTrailingChars.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimTrailingChars.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimTrailingChars.kt index 1999c83404..0a2c32a13c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnTrimTrailingChars.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnTrimTrailingChars.kt @@ -1,12 +1,12 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature -import org.partiql.planner.internal.fn.utils.StringUtils.codepointTrimTrailing +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature +import org.partiql.spi.fn.utils.StringUtils.codepointTrimTrailing import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnUpper.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnUpper.kt similarity index 91% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnUpper.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnUpper.kt index 3407002de8..bd8680c4b8 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnUpper.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnUpper.kt @@ -1,11 +1,11 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnParameter -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnParameter +import org.partiql.spi.fn.FnSignature import org.partiql.value.ClobValue import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnUtcnow.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnUtcnow.kt similarity index 83% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnUtcnow.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnUtcnow.kt index 431b0fe6c1..779239b027 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/FnUtcnow.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/FnUtcnow.kt @@ -1,10 +1,10 @@ // ktlint-disable filename @file:Suppress("ClassName") -package org.partiql.planner.internal.fn.builtins +package org.partiql.spi.fn.builtins -import org.partiql.planner.internal.fn.Fn -import org.partiql.planner.internal.fn.FnSignature +import org.partiql.spi.fn.Fn +import org.partiql.spi.fn.FnSignature import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.TIMESTAMP diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/Accumulator.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/Accumulator.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/Accumulator.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/Accumulator.kt index f985f54b4c..99bca5144e 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/Accumulator.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/Accumulator.kt @@ -14,11 +14,11 @@ @file:OptIn(PartiQLValueExperimental::class) -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import com.amazon.ion.Decimal import org.partiql.errors.TypeCheckException -import org.partiql.planner.internal.fn.Agg +import org.partiql.spi.fn.Agg import org.partiql.value.BoolValue import org.partiql.value.DecimalValue import org.partiql.value.Float32Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorAnySome.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorAnySome.kt similarity index 90% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorAnySome.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorAnySome.kt index 3eba785613..7efb051f42 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorAnySome.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorAnySome.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorAvg.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorAvg.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorAvg.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorAvg.kt index 1025292ab9..544ce8a01f 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorAvg.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorAvg.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorCount.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorCount.kt similarity index 86% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorCount.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorCount.kt index e99f030549..0156d67079 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorCount.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorCount.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorCountStar.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorCountStar.kt similarity index 79% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorCountStar.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorCountStar.kt index da323db940..1ac131ab55 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorCountStar.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorCountStar.kt @@ -1,6 +1,6 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal -import org.partiql.planner.internal.fn.Agg +import org.partiql.spi.fn.Agg import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental import org.partiql.value.int64Value diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorEvery.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorEvery.kt similarity index 91% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorEvery.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorEvery.kt index 810c43a137..22499f9836 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorEvery.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorEvery.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorGroupAs.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorGroupAs.kt similarity index 87% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorGroupAs.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorGroupAs.kt index 8dcbb8cd74..d3f4431159 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorGroupAs.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorGroupAs.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorMax.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorMax.kt similarity index 88% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorMax.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorMax.kt index dc9c2dc1df..e50e3a2017 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorMax.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorMax.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorMin.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorMin.kt similarity index 88% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorMin.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorMin.kt index be11254eea..3734ea101c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorMin.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorMin.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorSum.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorSum.kt similarity index 92% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorSum.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorSum.kt index eb74b16a62..1e1c080ad4 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/builtins/internal/AccumulatorSum.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/builtins/internal/AccumulatorSum.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.builtins.internal +package org.partiql.spi.fn.builtins.internal import org.partiql.value.PartiQLValue import org.partiql.value.PartiQLValueExperimental diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/utils/PatternUtils.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/utils/PatternUtils.kt similarity index 98% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/utils/PatternUtils.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/utils/PatternUtils.kt index 07e24e8049..60f9f22c3c 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/utils/PatternUtils.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/utils/PatternUtils.kt @@ -1,6 +1,6 @@ -package org.partiql.planner.internal.fn.utils +package org.partiql.spi.fn.utils -import org.partiql.planner.internal.fn.utils.StringUtils.codePointSequence +import org.partiql.spi.fn.utils.StringUtils.codePointSequence import java.util.regex.Pattern internal object PatternUtils { diff --git a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/utils/StringUtils.kt b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/utils/StringUtils.kt similarity index 99% rename from partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/utils/StringUtils.kt rename to partiql-spi/src/main/kotlin/org/partiql/spi/fn/utils/StringUtils.kt index 24b9e67d99..adfa0260ff 100644 --- a/partiql-planner/src/main/kotlin/org/partiql/planner/internal/fn/utils/StringUtils.kt +++ b/partiql-spi/src/main/kotlin/org/partiql/spi/fn/utils/StringUtils.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal.fn.utils +package org.partiql.spi.fn.utils internal object StringUtils {