From dd433281943cc4cc4b6ac9262a42c1731c06e7aa Mon Sep 17 00:00:00 2001 From: "R. C. Howell" Date: Thu, 4 Jan 2024 10:41:52 -0800 Subject: [PATCH] Use SPECIFIC as implementation class name for builtins --- partiql-planner/build.gradle.kts | 1 - .../internal/typer/FunctionResolverTest.kt | 19 - plugins/partiql-plugin/build.gradle.kts | 4 + .../org/partiql/plugin/PartiQLPlugin.kt | 909 +++++++++--------- .../partiql/plugin/internal/fn/agg/AggAny.kt | 5 +- .../partiql/plugin/internal/fn/agg/AggAvg.kt | 19 +- .../plugin/internal/fn/agg/AggCount.kt | 5 +- .../plugin/internal/fn/agg/AggCountStar.kt | 5 +- .../plugin/internal/fn/agg/AggEvery.kt | 5 +- .../partiql/plugin/internal/fn/agg/AggMax.kt | 19 +- .../partiql/plugin/internal/fn/agg/AggMin.kt | 19 +- .../partiql/plugin/internal/fn/agg/AggSome.kt | 5 +- .../partiql/plugin/internal/fn/agg/AggSum.kt | 19 +- .../plugin/internal/fn/scalar/FnAnd.kt | 31 +- .../plugin/internal/fn/scalar/FnBetween.kt | 59 +- .../plugin/internal/fn/scalar/FnBitwiseAnd.kt | 38 +- .../plugin/internal/fn/scalar/FnConcat.kt | 24 +- .../internal/fn/scalar/FnCurrentDate.kt | 5 +- .../internal/fn/scalar/FnCurrentUser.kt | 5 +- .../plugin/internal/fn/scalar/FnDateAddDay.kt | 66 +- .../internal/fn/scalar/FnDateAddHour.kt | 66 +- .../internal/fn/scalar/FnDateAddMinute.kt | 66 +- .../internal/fn/scalar/FnDateAddMonth.kt | 66 +- .../internal/fn/scalar/FnDateAddSecond.kt | 66 +- .../internal/fn/scalar/FnDateAddYear.kt | 66 +- .../internal/fn/scalar/FnDateDiffDay.kt | 24 +- .../internal/fn/scalar/FnDateDiffHour.kt | 24 +- .../internal/fn/scalar/FnDateDiffMinute.kt | 24 +- .../internal/fn/scalar/FnDateDiffMonth.kt | 24 +- .../internal/fn/scalar/FnDateDiffSecond.kt | 24 +- .../internal/fn/scalar/FnDateDiffYear.kt | 24 +- .../plugin/internal/fn/scalar/FnDivide.kt | 59 +- .../partiql/plugin/internal/fn/scalar/FnEq.kt | 199 ++-- .../partiql/plugin/internal/fn/scalar/FnGt.kt | 108 ++- .../plugin/internal/fn/scalar/FnGte.kt | 108 ++- .../internal/fn/scalar/FnInCollection.kt | 591 ++++++++---- .../plugin/internal/fn/scalar/FnIsAny.kt | 5 +- .../plugin/internal/fn/scalar/FnIsBag.kt | 5 +- .../plugin/internal/fn/scalar/FnIsBinary.kt | 5 +- .../plugin/internal/fn/scalar/FnIsBlob.kt | 5 +- .../plugin/internal/fn/scalar/FnIsBool.kt | 5 +- .../plugin/internal/fn/scalar/FnIsByte.kt | 5 +- .../plugin/internal/fn/scalar/FnIsChar.kt | 12 +- .../plugin/internal/fn/scalar/FnIsClob.kt | 5 +- .../plugin/internal/fn/scalar/FnIsDate.kt | 5 +- .../plugin/internal/fn/scalar/FnIsDecimal.kt | 9 +- .../fn/scalar/FnIsDecimalArbitrary.kt | 5 +- .../plugin/internal/fn/scalar/FnIsFloat32.kt | 5 +- .../plugin/internal/fn/scalar/FnIsFloat64.kt | 5 +- .../plugin/internal/fn/scalar/FnIsInt.kt | 5 +- .../plugin/internal/fn/scalar/FnIsInt16.kt | 5 +- .../plugin/internal/fn/scalar/FnIsInt32.kt | 5 +- .../plugin/internal/fn/scalar/FnIsInt64.kt | 5 +- .../plugin/internal/fn/scalar/FnIsInt8.kt | 5 +- .../plugin/internal/fn/scalar/FnIsInterval.kt | 5 +- .../plugin/internal/fn/scalar/FnIsList.kt | 5 +- .../plugin/internal/fn/scalar/FnIsMissing.kt | 5 +- .../plugin/internal/fn/scalar/FnIsNull.kt | 5 +- .../plugin/internal/fn/scalar/FnIsSexp.kt | 5 +- .../plugin/internal/fn/scalar/FnIsString.kt | 12 +- .../plugin/internal/fn/scalar/FnIsStruct.kt | 5 +- .../plugin/internal/fn/scalar/FnIsSymbol.kt | 5 +- .../plugin/internal/fn/scalar/FnIsTime.kt | 9 +- .../internal/fn/scalar/FnIsTimestamp.kt | 9 +- .../plugin/internal/fn/scalar/FnLike.kt | 24 +- .../plugin/internal/fn/scalar/FnLikeEscape.kt | 15 +- .../plugin/internal/fn/scalar/FnLower.kt | 9 +- .../partiql/plugin/internal/fn/scalar/FnLt.kt | 108 ++- .../plugin/internal/fn/scalar/FnLte.kt | 108 ++- .../plugin/internal/fn/scalar/FnMinus.kt | 59 +- .../plugin/internal/fn/scalar/FnModulo.kt | 59 +- .../plugin/internal/fn/scalar/FnNeg.kt | 19 +- .../plugin/internal/fn/scalar/FnNot.kt | 7 +- .../partiql/plugin/internal/fn/scalar/FnOr.kt | 31 +- .../plugin/internal/fn/scalar/FnPlus.kt | 59 +- .../plugin/internal/fn/scalar/FnPos.kt | 19 +- .../plugin/internal/fn/scalar/FnPosition.kt | 24 +- .../plugin/internal/fn/scalar/FnSubstring.kt | 36 +- .../plugin/internal/fn/scalar/FnTimes.kt | 59 +- .../plugin/internal/fn/scalar/FnTrim.kt | 9 +- .../plugin/internal/fn/scalar/FnTrimChars.kt | 24 +- .../internal/fn/scalar/FnTrimLeading.kt | 9 +- .../internal/fn/scalar/FnTrimLeadingChars.kt | 24 +- .../internal/fn/scalar/FnTrimTrailing.kt | 9 +- .../internal/fn/scalar/FnTrimTrailingChars.kt | 24 +- .../plugin/internal/fn/scalar/FnUpper.kt | 9 +- .../plugin/internal/fn/scalar/FnUtcnow.kt | 5 +- .../test/kotlin/org/partiql/plugin}/Header.kt | 8 +- .../kotlin/org/partiql/plugin}/HeaderTest.kt | 35 +- .../org/partiql/plugin}/PartiQLHeader.kt | 2 +- 90 files changed, 2471 insertions(+), 1290 deletions(-) rename {partiql-planner/src/test/kotlin/org/partiql/planner/internal => plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin}/Header.kt (90%) rename {partiql-planner/src/test/kotlin/org/partiql/planner/internal => plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin}/HeaderTest.kt (78%) rename {partiql-planner/src/test/kotlin/org/partiql/planner/internal => plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin}/PartiQLHeader.kt (99%) diff --git a/partiql-planner/build.gradle.kts b/partiql-planner/build.gradle.kts index c7bf0c43db..a5ae3102ca 100644 --- a/partiql-planner/build.gradle.kts +++ b/partiql-planner/build.gradle.kts @@ -35,7 +35,6 @@ dependencies { testImplementation(project(":partiql-parser")) testImplementation(project(":plugins:partiql-local")) testImplementation(project(":plugins:partiql-memory")) - testImplementation(Deps.kasechange) // Test Fixtures testFixturesImplementation(project(":partiql-spi")) } diff --git a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FunctionResolverTest.kt b/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FunctionResolverTest.kt index ccec31387e..70c6f1824c 100644 --- a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FunctionResolverTest.kt +++ b/partiql-planner/src/test/kotlin/org/partiql/planner/internal/typer/FunctionResolverTest.kt @@ -2,7 +2,6 @@ package org.partiql.planner.internal.typer import org.junit.jupiter.api.Test import org.junit.jupiter.api.fail -import org.partiql.planner.internal.Header import org.partiql.spi.connector.ConnectorFunctions import org.partiql.types.function.FunctionParameter import org.partiql.types.function.FunctionSignature @@ -17,24 +16,6 @@ import org.partiql.value.PartiQLValueType @OptIn(PartiQLValueExperimental::class) class FunctionResolverTest { - @Test - fun sanity() { - // 1 + 1.0 -> 2.0 - val fn = Header.binary( - name = "plus", - returns = PartiQLValueType.FLOAT64, - lhs = PartiQLValueType.FLOAT64, - rhs = PartiQLValueType.FLOAT64, - ) - val args = listOf( - FunctionParameter("arg-0", PartiQLValueType.INT32), - FunctionParameter("arg-1", PartiQLValueType.FLOAT64), - ) - val expectedImplicitCasts = listOf(true, false) - val case = Case.Success(fn, args, expectedImplicitCasts) - case.assert() - } - @Test fun split() { val args = listOf( diff --git a/plugins/partiql-plugin/build.gradle.kts b/plugins/partiql-plugin/build.gradle.kts index ceef4f3a41..f439966d25 100644 --- a/plugins/partiql-plugin/build.gradle.kts +++ b/plugins/partiql-plugin/build.gradle.kts @@ -23,4 +23,8 @@ plugins { dependencies { implementation(project(":partiql-spi")) implementation(project(":partiql-types")) + + // Header Generation + testImplementation(project(":partiql-ast")) + testImplementation(Deps.kasechange) } diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/PartiQLPlugin.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/PartiQLPlugin.kt index 1482abee8a..03b73115ae 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/PartiQLPlugin.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/PartiQLPlugin.kt @@ -4,7 +4,6 @@ package org.partiql.plugin import com.amazon.ionelement.api.StructElement import org.partiql.plugin.internal.fn.agg.* import org.partiql.plugin.internal.fn.scalar.* -import org.partiql.plugin.internal.fn.scalar.FnUtcnow import org.partiql.spi.Plugin import org.partiql.spi.connector.Connector import org.partiql.spi.function.PartiQLFunction @@ -26,467 +25,467 @@ object PartiQLPlugin : Plugin { @PartiQLFunctionExperimental internal val scalars = listOf( - FnUpper0, - FnUpper1, - FnUpper2, - FnLower0, - FnLower1, - FnLower2, - FnPosition0, - FnPosition1, - FnPosition2, - FnSubstring0, - FnSubstring1, - FnSubstring2, - FnSubstring3, - FnSubstring4, - FnSubstring5, - FnTrim0, - FnTrim1, - FnTrim2, - FnUtcnow + Fn_UPPER__STRING__STRING, + Fn_UPPER__SYMBOL__SYMBOL, + Fn_UPPER__CLOB__CLOB, + Fn_LOWER__STRING__STRING, + Fn_LOWER__SYMBOL__SYMBOL, + Fn_LOWER__CLOB__CLOB, + Fn_POSITION__STRING_STRING__INT64, + Fn_POSITION__SYMBOL_SYMBOL__INT64, + Fn_POSITION__CLOB_CLOB__INT64, + Fn_SUBSTRING__STRING_INT64__STRING, + Fn_SUBSTRING__STRING_INT64_INT64__STRING, + Fn_SUBSTRING__SYMBOL_INT64__SYMBOL, + Fn_SUBSTRING__SYMBOL_INT64_INT64__SYMBOL, + Fn_SUBSTRING__CLOB_INT64__CLOB, + Fn_SUBSTRING__CLOB_INT64_INT64__CLOB, + Fn_TRIM__STRING__STRING, + Fn_TRIM__SYMBOL__SYMBOL, + Fn_TRIM__CLOB__CLOB, + Fn_UTCNOW____TIMESTAMP, ) @PartiQLFunctionExperimental - internal val operators = listOf( - FnNot0, - FnNot1, - FnAnd0, - FnAnd1, - FnAnd2, - FnAnd3, - FnOr0, - FnOr1, - FnOr2, - FnOr3, - FnLt0, - FnLt1, - FnLt2, - FnLt3, - FnLt4, - FnLt5, - FnLt6, - FnLt7, - FnLt8, - FnLt9, - FnLt10, - FnLt11, - FnLt12, - FnLt13, - FnLt14, - FnLte0, - FnLte1, - FnLte2, - FnLte3, - FnLte4, - FnLte5, - FnLte6, - FnLte7, - FnLte8, - FnLte9, - FnLte10, - FnLte11, - FnLte12, - FnLte13, - FnLte14, - FnGt0, - FnGt1, - FnGt2, - FnGt3, - FnGt4, - FnGt5, - FnGt6, - FnGt7, - FnGt8, - FnGt9, - FnGt10, - FnGt11, - FnGt12, - FnGt13, - FnGt14, - FnGte0, - FnGte1, - FnGte2, - FnGte3, - FnGte4, - FnGte5, - FnGte6, - FnGte7, - FnGte8, - FnGte9, - FnGte10, - FnGte11, - FnGte12, - FnGte13, - FnGte14, - FnEq0, - FnEq1, - FnEq2, - FnEq3, - FnEq4, - FnEq5, - FnEq6, - FnEq7, - FnEq8, - FnEq9, - FnEq10, - FnEq11, - FnEq12, - FnEq13, - FnEq14, - FnEq15, - FnEq16, - FnEq17, - FnEq18, - FnEq19, - FnEq20, - FnEq21, - FnEq22, - FnEq23, - FnEq24, - FnEq25, - FnEq26, - FnEq27, - FnBetween0, - FnBetween1, - FnBetween2, - FnBetween3, - FnBetween4, - FnBetween5, - FnBetween6, - FnBetween7, - FnBetween8, - FnBetween9, - FnBetween10, - FnBetween11, - FnBetween12, - FnBetween13, - FnInCollection0, - FnInCollection1, - FnInCollection2, - FnInCollection3, - FnInCollection4, - FnInCollection5, - FnInCollection6, - FnInCollection7, - FnInCollection8, - FnInCollection9, - FnInCollection10, - FnInCollection11, - FnInCollection12, - FnInCollection13, - FnInCollection14, - FnInCollection15, - FnInCollection16, - FnInCollection17, - FnInCollection18, - FnInCollection19, - FnInCollection20, - FnInCollection21, - FnInCollection22, - FnInCollection23, - FnInCollection24, - FnInCollection25, - FnInCollection26, - FnInCollection27, - FnInCollection28, - FnInCollection29, - FnInCollection30, - FnInCollection31, - FnInCollection32, - FnInCollection33, - FnInCollection34, - FnInCollection35, - FnInCollection36, - FnInCollection37, - FnInCollection38, - FnInCollection39, - FnInCollection40, - FnInCollection41, - FnInCollection42, - FnInCollection43, - FnInCollection44, - FnInCollection45, - FnInCollection46, - FnInCollection47, - FnInCollection48, - FnInCollection49, - FnInCollection50, - FnInCollection51, - FnInCollection52, - FnInCollection53, - FnInCollection54, - FnInCollection55, - FnInCollection56, - FnInCollection57, - FnInCollection58, - FnInCollection59, - FnInCollection60, - FnInCollection61, - FnInCollection62, - FnInCollection63, - FnInCollection64, - FnInCollection65, - FnInCollection66, - FnInCollection67, - FnInCollection68, - FnInCollection69, - FnInCollection70, - FnInCollection71, - FnInCollection72, - FnInCollection73, - FnInCollection74, - FnInCollection75, - FnInCollection76, - FnInCollection77, - FnInCollection78, - FnInCollection79, - FnInCollection80, - FnInCollection81, - FnInCollection82, - FnInCollection83, - FnLike0, - FnLike1, - FnLike2, - FnLikeEscape0, - FnLikeEscape1, - FnLikeEscape2, - FnIsNull, - FnIsMissing, - FnIsAny, - FnIsBool, - FnIsInt8, - FnIsInt16, - FnIsInt32, - FnIsInt64, - FnIsInt, - FnIsDecimal0, - FnIsDecimal1, - FnIsDecimalArbitrary, - FnIsFloat32, - FnIsFloat64, - FnIsChar0, - FnIsChar1, - FnIsString0, - FnIsString1, - FnIsSymbol, - FnIsBinary, - FnIsByte, - FnIsBlob, - FnIsClob, - FnIsDate, - FnIsTime0, - FnIsTime1, - FnIsTimestamp0, - FnIsTimestamp1, - FnIsInterval, - FnIsBag, - FnIsList, - FnIsSexp, - FnIsStruct, - FnPos0, - FnPos1, - FnPos2, - FnPos3, - FnPos4, - FnPos5, - FnPos6, - FnPos7, - FnNeg0, - FnNeg1, - FnNeg2, - FnNeg3, - FnNeg4, - FnNeg5, - FnNeg6, - FnNeg7, - FnPlus0, - FnPlus1, - FnPlus2, - FnPlus3, - FnPlus4, - FnPlus5, - FnPlus6, - FnPlus7, - FnMinus0, - FnMinus1, - FnMinus2, - FnMinus3, - FnMinus4, - FnMinus5, - FnMinus6, - FnMinus7, - FnTimes0, - FnTimes1, - FnTimes2, - FnTimes3, - FnTimes4, - FnTimes5, - FnTimes6, - FnTimes7, - FnDivide0, - FnDivide1, - FnDivide2, - FnDivide3, - FnDivide4, - FnDivide5, - FnDivide6, - FnDivide7, - FnModulo0, - FnModulo1, - FnModulo2, - FnModulo3, - FnModulo4, - FnModulo5, - FnModulo6, - FnModulo7, - FnConcat0, - FnConcat1, - FnConcat2, - FnBitwiseAnd0, - FnBitwiseAnd1, - FnBitwiseAnd2, - FnBitwiseAnd3, - FnBitwiseAnd4, - FnPosition0, - FnPosition1, - FnPosition2, - FnSubstring0, - FnSubstring1, - FnSubstring2, - FnSubstring3, - FnSubstring4, - FnSubstring5, - FnTrimChars0, - FnTrimChars1, - FnTrimChars2, - FnTrimLeading0, - FnTrimLeading1, - FnTrimLeading2, - FnTrimLeadingChars0, - FnTrimLeadingChars1, - FnTrimLeadingChars2, - FnTrimTrailing0, - FnTrimTrailing1, - FnTrimTrailing2, - FnTrimTrailingChars0, - FnTrimTrailingChars1, - FnTrimTrailingChars2, - FnDateAddYear0, - FnDateAddYear1, - FnDateAddYear2, - FnDateAddYear3, - FnDateAddYear4, - FnDateAddYear5, - FnDateAddYear6, - FnDateAddYear7, - FnDateAddYear8, - FnDateAddMonth0, - FnDateAddMonth1, - FnDateAddMonth2, - FnDateAddMonth3, - FnDateAddMonth4, - FnDateAddMonth5, - FnDateAddMonth6, - FnDateAddMonth7, - FnDateAddMonth8, - FnDateAddDay0, - FnDateAddDay1, - FnDateAddDay2, - FnDateAddDay3, - FnDateAddDay4, - FnDateAddDay5, - FnDateAddDay6, - FnDateAddDay7, - FnDateAddDay8, - FnDateAddHour0, - FnDateAddHour1, - FnDateAddHour2, - FnDateAddHour3, - FnDateAddHour4, - FnDateAddHour5, - FnDateAddHour6, - FnDateAddHour7, - FnDateAddHour8, - FnDateAddMinute0, - FnDateAddMinute1, - FnDateAddMinute2, - FnDateAddMinute3, - FnDateAddMinute4, - FnDateAddMinute5, - FnDateAddMinute6, - FnDateAddMinute7, - FnDateAddMinute8, - FnDateAddSecond0, - FnDateAddSecond1, - FnDateAddSecond2, - FnDateAddSecond3, - FnDateAddSecond4, - FnDateAddSecond5, - FnDateAddSecond6, - FnDateAddSecond7, - FnDateAddSecond8, - FnDateDiffYear0, - FnDateDiffYear1, - FnDateDiffYear2, - FnDateDiffMonth0, - FnDateDiffMonth1, - FnDateDiffMonth2, - FnDateDiffDay0, - FnDateDiffDay1, - FnDateDiffDay2, - FnDateDiffHour0, - FnDateDiffHour1, - FnDateDiffHour2, - FnDateDiffMinute0, - FnDateDiffMinute1, - FnDateDiffMinute2, - FnDateDiffSecond0, - FnDateDiffSecond1, - FnDateDiffSecond2, - FnCurrentUser, - FnCurrentDate + internal val operators = listOf( + Fn_NOT__BOOL__BOOL, + Fn_NOT__MISSING__BOOL, + Fn_AND__BOOL_BOOL__BOOL, + Fn_AND__MISSING_BOOL__BOOL, + Fn_AND__BOOL_MISSING__BOOL, + Fn_AND__MISSING_MISSING__BOOL, + Fn_OR__BOOL_BOOL__BOOL, + Fn_OR__MISSING_BOOL__BOOL, + Fn_OR__BOOL_MISSING__BOOL, + Fn_OR__MISSING_MISSING__BOOL, + Fn_LT__INT8_INT8__BOOL, + Fn_LT__INT16_INT16__BOOL, + Fn_LT__INT32_INT32__BOOL, + Fn_LT__INT64_INT64__BOOL, + Fn_LT__INT_INT__BOOL, + Fn_LT__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL, + Fn_LT__FLOAT32_FLOAT32__BOOL, + Fn_LT__FLOAT64_FLOAT64__BOOL, + Fn_LT__STRING_STRING__BOOL, + Fn_LT__SYMBOL_SYMBOL__BOOL, + Fn_LT__CLOB_CLOB__BOOL, + Fn_LT__DATE_DATE__BOOL, + Fn_LT__TIME_TIME__BOOL, + Fn_LT__TIMESTAMP_TIMESTAMP__BOOL, + Fn_LT__BOOL_BOOL__BOOL, + Fn_LTE__INT8_INT8__BOOL, + Fn_LTE__INT16_INT16__BOOL, + Fn_LTE__INT32_INT32__BOOL, + Fn_LTE__INT64_INT64__BOOL, + Fn_LTE__INT_INT__BOOL, + Fn_LTE__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL, + Fn_LTE__FLOAT32_FLOAT32__BOOL, + Fn_LTE__FLOAT64_FLOAT64__BOOL, + Fn_LTE__STRING_STRING__BOOL, + Fn_LTE__SYMBOL_SYMBOL__BOOL, + Fn_LTE__CLOB_CLOB__BOOL, + Fn_LTE__DATE_DATE__BOOL, + Fn_LTE__TIME_TIME__BOOL, + Fn_LTE__TIMESTAMP_TIMESTAMP__BOOL, + Fn_LTE__BOOL_BOOL__BOOL, + Fn_GT__INT8_INT8__BOOL, + Fn_GT__INT16_INT16__BOOL, + Fn_GT__INT32_INT32__BOOL, + Fn_GT__INT64_INT64__BOOL, + Fn_GT__INT_INT__BOOL, + Fn_GT__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL, + Fn_GT__FLOAT32_FLOAT32__BOOL, + Fn_GT__FLOAT64_FLOAT64__BOOL, + Fn_GT__STRING_STRING__BOOL, + Fn_GT__SYMBOL_SYMBOL__BOOL, + Fn_GT__CLOB_CLOB__BOOL, + Fn_GT__DATE_DATE__BOOL, + Fn_GT__TIME_TIME__BOOL, + Fn_GT__TIMESTAMP_TIMESTAMP__BOOL, + Fn_GT__BOOL_BOOL__BOOL, + Fn_GTE__INT8_INT8__BOOL, + Fn_GTE__INT16_INT16__BOOL, + Fn_GTE__INT32_INT32__BOOL, + Fn_GTE__INT64_INT64__BOOL, + Fn_GTE__INT_INT__BOOL, + Fn_GTE__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL, + Fn_GTE__FLOAT32_FLOAT32__BOOL, + Fn_GTE__FLOAT64_FLOAT64__BOOL, + Fn_GTE__STRING_STRING__BOOL, + Fn_GTE__SYMBOL_SYMBOL__BOOL, + Fn_GTE__CLOB_CLOB__BOOL, + Fn_GTE__DATE_DATE__BOOL, + Fn_GTE__TIME_TIME__BOOL, + Fn_GTE__TIMESTAMP_TIMESTAMP__BOOL, + Fn_GTE__BOOL_BOOL__BOOL, + Fn_EQ__ANY_ANY__BOOL, + Fn_EQ__BOOL_BOOL__BOOL, + Fn_EQ__INT8_INT8__BOOL, + Fn_EQ__INT16_INT16__BOOL, + Fn_EQ__INT32_INT32__BOOL, + Fn_EQ__INT64_INT64__BOOL, + Fn_EQ__INT_INT__BOOL, + Fn_EQ__DECIMAL_DECIMAL__BOOL, + Fn_EQ__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL, + Fn_EQ__FLOAT32_FLOAT32__BOOL, + Fn_EQ__FLOAT64_FLOAT64__BOOL, + Fn_EQ__CHAR_CHAR__BOOL, + Fn_EQ__STRING_STRING__BOOL, + Fn_EQ__SYMBOL_SYMBOL__BOOL, + Fn_EQ__BINARY_BINARY__BOOL, + Fn_EQ__BYTE_BYTE__BOOL, + Fn_EQ__BLOB_BLOB__BOOL, + Fn_EQ__CLOB_CLOB__BOOL, + Fn_EQ__DATE_DATE__BOOL, + Fn_EQ__TIME_TIME__BOOL, + Fn_EQ__TIMESTAMP_TIMESTAMP__BOOL, + Fn_EQ__INTERVAL_INTERVAL__BOOL, + Fn_EQ__BAG_BAG__BOOL, + Fn_EQ__LIST_LIST__BOOL, + Fn_EQ__SEXP_SEXP__BOOL, + Fn_EQ__STRUCT_STRUCT__BOOL, + Fn_EQ__NULL_NULL__BOOL, + Fn_EQ__MISSING_MISSING__BOOL, + Fn_BETWEEN__INT8_INT8_INT8__BOOL, + Fn_BETWEEN__INT16_INT16_INT16__BOOL, + Fn_BETWEEN__INT32_INT32_INT32__BOOL, + Fn_BETWEEN__INT64_INT64_INT64__BOOL, + Fn_BETWEEN__INT_INT_INT__BOOL, + Fn_BETWEEN__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL, + Fn_BETWEEN__FLOAT32_FLOAT32_FLOAT32__BOOL, + Fn_BETWEEN__FLOAT64_FLOAT64_FLOAT64__BOOL, + Fn_BETWEEN__STRING_STRING_STRING__BOOL, + Fn_BETWEEN__SYMBOL_SYMBOL_SYMBOL__BOOL, + Fn_BETWEEN__CLOB_CLOB_CLOB__BOOL, + Fn_BETWEEN__DATE_DATE_DATE__BOOL, + Fn_BETWEEN__TIME_TIME_TIME__BOOL, + Fn_BETWEEN__TIMESTAMP_TIMESTAMP_TIMESTAMP__BOOL, + Fn_IN_COLLECTION__ANY_BAG__BOOL, + Fn_IN_COLLECTION__ANY_LIST__BOOL, + Fn_IN_COLLECTION__ANY_SEXP__BOOL, + Fn_IN_COLLECTION__BOOL_BAG__BOOL, + Fn_IN_COLLECTION__BOOL_LIST__BOOL, + Fn_IN_COLLECTION__BOOL_SEXP__BOOL, + Fn_IN_COLLECTION__INT8_BAG__BOOL, + Fn_IN_COLLECTION__INT8_LIST__BOOL, + Fn_IN_COLLECTION__INT8_SEXP__BOOL, + Fn_IN_COLLECTION__INT16_BAG__BOOL, + Fn_IN_COLLECTION__INT16_LIST__BOOL, + Fn_IN_COLLECTION__INT16_SEXP__BOOL, + Fn_IN_COLLECTION__INT32_BAG__BOOL, + Fn_IN_COLLECTION__INT32_LIST__BOOL, + Fn_IN_COLLECTION__INT32_SEXP__BOOL, + Fn_IN_COLLECTION__INT64_BAG__BOOL, + Fn_IN_COLLECTION__INT64_LIST__BOOL, + Fn_IN_COLLECTION__INT64_SEXP__BOOL, + Fn_IN_COLLECTION__INT_BAG__BOOL, + Fn_IN_COLLECTION__INT_LIST__BOOL, + Fn_IN_COLLECTION__INT_SEXP__BOOL, + Fn_IN_COLLECTION__DECIMAL_BAG__BOOL, + Fn_IN_COLLECTION__DECIMAL_LIST__BOOL, + Fn_IN_COLLECTION__DECIMAL_SEXP__BOOL, + Fn_IN_COLLECTION__DECIMAL_ARBITRARY_BAG__BOOL, + Fn_IN_COLLECTION__DECIMAL_ARBITRARY_LIST__BOOL, + Fn_IN_COLLECTION__DECIMAL_ARBITRARY_SEXP__BOOL, + Fn_IN_COLLECTION__FLOAT32_BAG__BOOL, + Fn_IN_COLLECTION__FLOAT32_LIST__BOOL, + Fn_IN_COLLECTION__FLOAT32_SEXP__BOOL, + Fn_IN_COLLECTION__FLOAT64_BAG__BOOL, + Fn_IN_COLLECTION__FLOAT64_LIST__BOOL, + Fn_IN_COLLECTION__FLOAT64_SEXP__BOOL, + Fn_IN_COLLECTION__CHAR_BAG__BOOL, + Fn_IN_COLLECTION__CHAR_LIST__BOOL, + Fn_IN_COLLECTION__CHAR_SEXP__BOOL, + Fn_IN_COLLECTION__STRING_BAG__BOOL, + Fn_IN_COLLECTION__STRING_LIST__BOOL, + Fn_IN_COLLECTION__STRING_SEXP__BOOL, + Fn_IN_COLLECTION__SYMBOL_BAG__BOOL, + Fn_IN_COLLECTION__SYMBOL_LIST__BOOL, + Fn_IN_COLLECTION__SYMBOL_SEXP__BOOL, + Fn_IN_COLLECTION__BINARY_BAG__BOOL, + Fn_IN_COLLECTION__BINARY_LIST__BOOL, + Fn_IN_COLLECTION__BINARY_SEXP__BOOL, + Fn_IN_COLLECTION__BYTE_BAG__BOOL, + Fn_IN_COLLECTION__BYTE_LIST__BOOL, + Fn_IN_COLLECTION__BYTE_SEXP__BOOL, + Fn_IN_COLLECTION__BLOB_BAG__BOOL, + Fn_IN_COLLECTION__BLOB_LIST__BOOL, + Fn_IN_COLLECTION__BLOB_SEXP__BOOL, + Fn_IN_COLLECTION__CLOB_BAG__BOOL, + Fn_IN_COLLECTION__CLOB_LIST__BOOL, + Fn_IN_COLLECTION__CLOB_SEXP__BOOL, + Fn_IN_COLLECTION__DATE_BAG__BOOL, + Fn_IN_COLLECTION__DATE_LIST__BOOL, + Fn_IN_COLLECTION__DATE_SEXP__BOOL, + Fn_IN_COLLECTION__TIME_BAG__BOOL, + Fn_IN_COLLECTION__TIME_LIST__BOOL, + Fn_IN_COLLECTION__TIME_SEXP__BOOL, + Fn_IN_COLLECTION__TIMESTAMP_BAG__BOOL, + Fn_IN_COLLECTION__TIMESTAMP_LIST__BOOL, + Fn_IN_COLLECTION__TIMESTAMP_SEXP__BOOL, + Fn_IN_COLLECTION__INTERVAL_BAG__BOOL, + Fn_IN_COLLECTION__INTERVAL_LIST__BOOL, + Fn_IN_COLLECTION__INTERVAL_SEXP__BOOL, + Fn_IN_COLLECTION__BAG_BAG__BOOL, + Fn_IN_COLLECTION__BAG_LIST__BOOL, + Fn_IN_COLLECTION__BAG_SEXP__BOOL, + Fn_IN_COLLECTION__LIST_BAG__BOOL, + Fn_IN_COLLECTION__LIST_LIST__BOOL, + Fn_IN_COLLECTION__LIST_SEXP__BOOL, + Fn_IN_COLLECTION__SEXP_BAG__BOOL, + Fn_IN_COLLECTION__SEXP_LIST__BOOL, + Fn_IN_COLLECTION__SEXP_SEXP__BOOL, + Fn_IN_COLLECTION__STRUCT_BAG__BOOL, + Fn_IN_COLLECTION__STRUCT_LIST__BOOL, + Fn_IN_COLLECTION__STRUCT_SEXP__BOOL, + Fn_IN_COLLECTION__NULL_BAG__BOOL, + Fn_IN_COLLECTION__NULL_LIST__BOOL, + Fn_IN_COLLECTION__NULL_SEXP__BOOL, + Fn_IN_COLLECTION__MISSING_BAG__BOOL, + Fn_IN_COLLECTION__MISSING_LIST__BOOL, + Fn_IN_COLLECTION__MISSING_SEXP__BOOL, + Fn_LIKE__STRING_STRING__BOOL, + Fn_LIKE__SYMBOL_SYMBOL__BOOL, + Fn_LIKE__CLOB_CLOB__BOOL, + Fn_LIKE_ESCAPE__STRING_STRING_STRING__BOOL, + Fn_LIKE_ESCAPE__SYMBOL_SYMBOL_SYMBOL__BOOL, + Fn_LIKE_ESCAPE__CLOB_CLOB_CLOB__BOOL, + Fn_IS_NULL__ANY__BOOL, + Fn_IS_MISSING__ANY__BOOL, + Fn_IS_ANY__ANY__BOOL, + Fn_IS_BOOL__ANY__BOOL, + Fn_IS_INT8__ANY__BOOL, + Fn_IS_INT16__ANY__BOOL, + Fn_IS_INT32__ANY__BOOL, + Fn_IS_INT64__ANY__BOOL, + Fn_IS_INT__ANY__BOOL, + Fn_IS_DECIMAL__ANY__BOOL, + Fn_IS_DECIMAL__INT32_INT32_ANY__BOOL, + Fn_IS_DECIMAL_ARBITRARY__ANY__BOOL, + Fn_IS_FLOAT32__ANY__BOOL, + Fn_IS_FLOAT64__ANY__BOOL, + Fn_IS_CHAR__ANY__BOOL, + Fn_IS_CHAR__INT32_ANY__BOOL, + Fn_IS_STRING__ANY__BOOL, + Fn_IS_STRING__INT32_ANY__BOOL, + Fn_IS_SYMBOL__ANY__BOOL, + Fn_IS_BINARY__ANY__BOOL, + Fn_IS_BYTE__ANY__BOOL, + Fn_IS_BLOB__ANY__BOOL, + Fn_IS_CLOB__ANY__BOOL, + Fn_IS_DATE__ANY__BOOL, + Fn_IS_TIME__ANY__BOOL, + Fn_IS_TIME__BOOL_INT32_ANY__BOOL, + Fn_IS_TIMESTAMP__ANY__BOOL, + Fn_IS_TIMESTAMP__BOOL_INT32_ANY__BOOL, + Fn_IS_INTERVAL__ANY__BOOL, + Fn_IS_BAG__ANY__BOOL, + Fn_IS_LIST__ANY__BOOL, + Fn_IS_SEXP__ANY__BOOL, + Fn_IS_STRUCT__ANY__BOOL, + Fn_POS__INT8__INT8, + Fn_POS__INT16__INT16, + Fn_POS__INT32__INT32, + Fn_POS__INT64__INT64, + Fn_POS__INT__INT, + Fn_POS__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_POS__FLOAT32__FLOAT32, + Fn_POS__FLOAT64__FLOAT64, + Fn_NEG__INT8__INT8, + Fn_NEG__INT16__INT16, + Fn_NEG__INT32__INT32, + Fn_NEG__INT64__INT64, + Fn_NEG__INT__INT, + Fn_NEG__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_NEG__FLOAT32__FLOAT32, + Fn_NEG__FLOAT64__FLOAT64, + Fn_PLUS__INT8_INT8__INT8, + Fn_PLUS__INT16_INT16__INT16, + Fn_PLUS__INT32_INT32__INT32, + Fn_PLUS__INT64_INT64__INT64, + Fn_PLUS__INT_INT__INT, + Fn_PLUS__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_PLUS__FLOAT32_FLOAT32__FLOAT32, + Fn_PLUS__FLOAT64_FLOAT64__FLOAT64, + Fn_MINUS__INT8_INT8__INT8, + Fn_MINUS__INT16_INT16__INT16, + Fn_MINUS__INT32_INT32__INT32, + Fn_MINUS__INT64_INT64__INT64, + Fn_MINUS__INT_INT__INT, + Fn_MINUS__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_MINUS__FLOAT32_FLOAT32__FLOAT32, + Fn_MINUS__FLOAT64_FLOAT64__FLOAT64, + Fn_TIMES__INT8_INT8__INT8, + Fn_TIMES__INT16_INT16__INT16, + Fn_TIMES__INT32_INT32__INT32, + Fn_TIMES__INT64_INT64__INT64, + Fn_TIMES__INT_INT__INT, + Fn_TIMES__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_TIMES__FLOAT32_FLOAT32__FLOAT32, + Fn_TIMES__FLOAT64_FLOAT64__FLOAT64, + Fn_DIVIDE__INT8_INT8__INT8, + Fn_DIVIDE__INT16_INT16__INT16, + Fn_DIVIDE__INT32_INT32__INT32, + Fn_DIVIDE__INT64_INT64__INT64, + Fn_DIVIDE__INT_INT__INT, + Fn_DIVIDE__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_DIVIDE__FLOAT32_FLOAT32__FLOAT32, + Fn_DIVIDE__FLOAT64_FLOAT64__FLOAT64, + Fn_MODULO__INT8_INT8__INT8, + Fn_MODULO__INT16_INT16__INT16, + Fn_MODULO__INT32_INT32__INT32, + Fn_MODULO__INT64_INT64__INT64, + Fn_MODULO__INT_INT__INT, + Fn_MODULO__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Fn_MODULO__FLOAT32_FLOAT32__FLOAT32, + Fn_MODULO__FLOAT64_FLOAT64__FLOAT64, + Fn_CONCAT__STRING_STRING__STRING, + Fn_CONCAT__SYMBOL_SYMBOL__SYMBOL, + Fn_CONCAT__CLOB_CLOB__CLOB, + Fn_BITWISE_AND__INT8_INT8__INT8, + Fn_BITWISE_AND__INT16_INT16__INT16, + Fn_BITWISE_AND__INT32_INT32__INT32, + Fn_BITWISE_AND__INT64_INT64__INT64, + Fn_BITWISE_AND__INT_INT__INT, + Fn_POSITION__STRING_STRING__INT64, + Fn_POSITION__SYMBOL_SYMBOL__INT64, + Fn_POSITION__CLOB_CLOB__INT64, + Fn_SUBSTRING__STRING_INT64__STRING, + Fn_SUBSTRING__STRING_INT64_INT64__STRING, + Fn_SUBSTRING__SYMBOL_INT64__SYMBOL, + Fn_SUBSTRING__SYMBOL_INT64_INT64__SYMBOL, + Fn_SUBSTRING__CLOB_INT64__CLOB, + Fn_SUBSTRING__CLOB_INT64_INT64__CLOB, + Fn_TRIM_CHARS__STRING_STRING__STRING, + Fn_TRIM_CHARS__SYMBOL_SYMBOL__SYMBOL, + Fn_TRIM_CHARS__CLOB_CLOB__CLOB, + Fn_TRIM_LEADING__STRING__STRING, + Fn_TRIM_LEADING__SYMBOL__SYMBOL, + Fn_TRIM_LEADING__CLOB__CLOB, + Fn_TRIM_LEADING_CHARS__STRING_STRING__STRING, + Fn_TRIM_LEADING_CHARS__SYMBOL_SYMBOL__SYMBOL, + Fn_TRIM_LEADING_CHARS__CLOB_CLOB__CLOB, + Fn_TRIM_TRAILING__STRING__STRING, + Fn_TRIM_TRAILING__SYMBOL__SYMBOL, + Fn_TRIM_TRAILING__CLOB__CLOB, + Fn_TRIM_TRAILING_CHARS__STRING_STRING__STRING, + Fn_TRIM_TRAILING_CHARS__SYMBOL_SYMBOL__SYMBOL, + Fn_TRIM_TRAILING_CHARS__CLOB_CLOB__CLOB, + Fn_DATE_ADD_YEAR__INT32_DATE__DATE, + Fn_DATE_ADD_YEAR__INT64_DATE__DATE, + Fn_DATE_ADD_YEAR__INT_DATE__DATE, + Fn_DATE_ADD_YEAR__INT32_TIME__TIME, + Fn_DATE_ADD_YEAR__INT64_TIME__TIME, + Fn_DATE_ADD_YEAR__INT_TIME__TIME, + Fn_DATE_ADD_YEAR__INT32_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_YEAR__INT64_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_YEAR__INT_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_MONTH__INT32_DATE__DATE, + Fn_DATE_ADD_MONTH__INT64_DATE__DATE, + Fn_DATE_ADD_MONTH__INT_DATE__DATE, + Fn_DATE_ADD_MONTH__INT32_TIME__TIME, + Fn_DATE_ADD_MONTH__INT64_TIME__TIME, + Fn_DATE_ADD_MONTH__INT_TIME__TIME, + Fn_DATE_ADD_MONTH__INT32_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_MONTH__INT64_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_MONTH__INT_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_DAY__INT32_DATE__DATE, + Fn_DATE_ADD_DAY__INT64_DATE__DATE, + Fn_DATE_ADD_DAY__INT_DATE__DATE, + Fn_DATE_ADD_DAY__INT32_TIME__TIME, + Fn_DATE_ADD_DAY__INT64_TIME__TIME, + Fn_DATE_ADD_DAY__INT_TIME__TIME, + Fn_DATE_ADD_DAY__INT32_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_DAY__INT64_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_DAY__INT_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_HOUR__INT32_DATE__DATE, + Fn_DATE_ADD_HOUR__INT64_DATE__DATE, + Fn_DATE_ADD_HOUR__INT_DATE__DATE, + Fn_DATE_ADD_HOUR__INT32_TIME__TIME, + Fn_DATE_ADD_HOUR__INT64_TIME__TIME, + Fn_DATE_ADD_HOUR__INT_TIME__TIME, + Fn_DATE_ADD_HOUR__INT32_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_HOUR__INT64_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_HOUR__INT_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_MINUTE__INT32_DATE__DATE, + Fn_DATE_ADD_MINUTE__INT64_DATE__DATE, + Fn_DATE_ADD_MINUTE__INT_DATE__DATE, + Fn_DATE_ADD_MINUTE__INT32_TIME__TIME, + Fn_DATE_ADD_MINUTE__INT64_TIME__TIME, + Fn_DATE_ADD_MINUTE__INT_TIME__TIME, + Fn_DATE_ADD_MINUTE__INT32_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_MINUTE__INT64_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_MINUTE__INT_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_SECOND__INT32_DATE__DATE, + Fn_DATE_ADD_SECOND__INT64_DATE__DATE, + Fn_DATE_ADD_SECOND__INT_DATE__DATE, + Fn_DATE_ADD_SECOND__INT32_TIME__TIME, + Fn_DATE_ADD_SECOND__INT64_TIME__TIME, + Fn_DATE_ADD_SECOND__INT_TIME__TIME, + Fn_DATE_ADD_SECOND__INT32_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_SECOND__INT64_TIMESTAMP__TIMESTAMP, + Fn_DATE_ADD_SECOND__INT_TIMESTAMP__TIMESTAMP, + Fn_DATE_DIFF_YEAR__DATE_DATE__INT64, + Fn_DATE_DIFF_YEAR__TIME_TIME__INT64, + Fn_DATE_DIFF_YEAR__TIMESTAMP_TIMESTAMP__INT64, + Fn_DATE_DIFF_MONTH__DATE_DATE__INT64, + Fn_DATE_DIFF_MONTH__TIME_TIME__INT64, + Fn_DATE_DIFF_MONTH__TIMESTAMP_TIMESTAMP__INT64, + Fn_DATE_DIFF_DAY__DATE_DATE__INT64, + Fn_DATE_DIFF_DAY__TIME_TIME__INT64, + Fn_DATE_DIFF_DAY__TIMESTAMP_TIMESTAMP__INT64, + Fn_DATE_DIFF_HOUR__DATE_DATE__INT64, + Fn_DATE_DIFF_HOUR__TIME_TIME__INT64, + Fn_DATE_DIFF_HOUR__TIMESTAMP_TIMESTAMP__INT64, + Fn_DATE_DIFF_MINUTE__DATE_DATE__INT64, + Fn_DATE_DIFF_MINUTE__TIME_TIME__INT64, + Fn_DATE_DIFF_MINUTE__TIMESTAMP_TIMESTAMP__INT64, + Fn_DATE_DIFF_SECOND__DATE_DATE__INT64, + Fn_DATE_DIFF_SECOND__TIME_TIME__INT64, + Fn_DATE_DIFF_SECOND__TIMESTAMP_TIMESTAMP__INT64, + Fn_CURRENT_USER____STRING, + Fn_CURRENT_DATE____DATE, ) @PartiQLFunctionExperimental internal val aggregations = listOf( - AggEvery, - AggAny, - AggSome, - AggCount, - AggCountStar, - AggMin0, - AggMin1, - AggMin2, - AggMin3, - AggMin4, - AggMin5, - AggMin6, - AggMin7, - AggMax0, - AggMax1, - AggMax2, - AggMax3, - AggMax4, - AggMax5, - AggMax6, - AggMax7, - AggSum0, - AggSum1, - AggSum2, - AggSum3, - AggSum4, - AggSum5, - AggSum6, - AggSum7, - AggAvg0, - AggAvg1, - AggAvg2, - AggAvg3, - AggAvg4, - AggAvg5, - AggAvg6, - AggAvg7 + Agg_EVERY__BOOL__BOOL, + Agg_ANY__BOOL__BOOL, + Agg_SOME__BOOL__BOOL, + Agg_COUNT__ANY__INT32, + Agg_COUNT_STAR____INT32, + Agg_MIN__INT8__INT8, + Agg_MIN__INT16__INT16, + Agg_MIN__INT32__INT32, + Agg_MIN__INT64__INT64, + Agg_MIN__INT__INT, + Agg_MIN__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Agg_MIN__FLOAT32__FLOAT32, + Agg_MIN__FLOAT64__FLOAT64, + Agg_MAX__INT8__INT8, + Agg_MAX__INT16__INT16, + Agg_MAX__INT32__INT32, + Agg_MAX__INT64__INT64, + Agg_MAX__INT__INT, + Agg_MAX__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Agg_MAX__FLOAT32__FLOAT32, + Agg_MAX__FLOAT64__FLOAT64, + Agg_SUM__INT8__INT8, + Agg_SUM__INT16__INT16, + Agg_SUM__INT32__INT32, + Agg_SUM__INT64__INT64, + Agg_SUM__INT__INT, + Agg_SUM__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Agg_SUM__FLOAT32__FLOAT32, + Agg_SUM__FLOAT64__FLOAT64, + Agg_AVG__INT8__INT8, + Agg_AVG__INT16__INT16, + Agg_AVG__INT32__INT32, + Agg_AVG__INT64__INT64, + Agg_AVG__INT__INT, + Agg_AVG__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY, + Agg_AVG__FLOAT32__FLOAT32, + Agg_AVG__FLOAT64__FLOAT64, ) @PartiQLFunctionExperimental diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAny.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAny.kt index 51687cba4d..6722158f9a 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAny.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAny.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -8,7 +11,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAny : PartiQLFunction.Aggregation { +internal object Agg_ANY__BOOL__BOOL : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "any", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAvg.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAvg.kt index 9eb72b99d5..0ab2645b40 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAvg.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggAvg.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -15,7 +18,7 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg0 : PartiQLFunction.Aggregation { +internal object Agg_AVG__INT8__INT8 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -31,7 +34,7 @@ internal object AggAvg0 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg1 : PartiQLFunction.Aggregation { +internal object Agg_AVG__INT16__INT16 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -47,7 +50,7 @@ internal object AggAvg1 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg2 : PartiQLFunction.Aggregation { +internal object Agg_AVG__INT32__INT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -63,7 +66,7 @@ internal object AggAvg2 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg3 : PartiQLFunction.Aggregation { +internal object Agg_AVG__INT64__INT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -79,7 +82,7 @@ internal object AggAvg3 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg4 : PartiQLFunction.Aggregation { +internal object Agg_AVG__INT__INT : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -95,7 +98,7 @@ internal object AggAvg4 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg5 : PartiQLFunction.Aggregation { +internal object Agg_AVG__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -111,7 +114,7 @@ internal object AggAvg5 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg6 : PartiQLFunction.Aggregation { +internal object Agg_AVG__FLOAT32__FLOAT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", @@ -127,7 +130,7 @@ internal object AggAvg6 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggAvg7 : PartiQLFunction.Aggregation { +internal object Agg_AVG__FLOAT64__FLOAT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "avg", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCount.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCount.kt index 888780b0ec..420805825f 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCount.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCount.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -9,7 +12,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggCount : PartiQLFunction.Aggregation { +internal object Agg_COUNT__ANY__INT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "count", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCountStar.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCountStar.kt index 7f6ee8e577..18e7631841 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCountStar.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggCountStar.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -7,7 +10,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggCountStar : PartiQLFunction.Aggregation { +internal object Agg_COUNT_STAR____INT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "count_star", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggEvery.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggEvery.kt index 2fca308e54..9b36e90134 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggEvery.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggEvery.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -8,7 +11,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggEvery : PartiQLFunction.Aggregation { +internal object Agg_EVERY__BOOL__BOOL : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "every", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMax.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMax.kt index 9592437f6c..afd8a0256f 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMax.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMax.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -15,7 +18,7 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax0 : PartiQLFunction.Aggregation { +internal object Agg_MAX__INT8__INT8 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -31,7 +34,7 @@ internal object AggMax0 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax1 : PartiQLFunction.Aggregation { +internal object Agg_MAX__INT16__INT16 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -47,7 +50,7 @@ internal object AggMax1 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax2 : PartiQLFunction.Aggregation { +internal object Agg_MAX__INT32__INT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -63,7 +66,7 @@ internal object AggMax2 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax3 : PartiQLFunction.Aggregation { +internal object Agg_MAX__INT64__INT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -79,7 +82,7 @@ internal object AggMax3 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax4 : PartiQLFunction.Aggregation { +internal object Agg_MAX__INT__INT : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -95,7 +98,7 @@ internal object AggMax4 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax5 : PartiQLFunction.Aggregation { +internal object Agg_MAX__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -111,7 +114,7 @@ internal object AggMax5 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax6 : PartiQLFunction.Aggregation { +internal object Agg_MAX__FLOAT32__FLOAT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", @@ -127,7 +130,7 @@ internal object AggMax6 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMax7 : PartiQLFunction.Aggregation { +internal object Agg_MAX__FLOAT64__FLOAT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "max", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMin.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMin.kt index 0de69cb531..4569e1f376 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMin.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggMin.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -15,7 +18,7 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin0 : PartiQLFunction.Aggregation { +internal object Agg_MIN__INT8__INT8 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -31,7 +34,7 @@ internal object AggMin0 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin1 : PartiQLFunction.Aggregation { +internal object Agg_MIN__INT16__INT16 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -47,7 +50,7 @@ internal object AggMin1 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin2 : PartiQLFunction.Aggregation { +internal object Agg_MIN__INT32__INT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -63,7 +66,7 @@ internal object AggMin2 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin3 : PartiQLFunction.Aggregation { +internal object Agg_MIN__INT64__INT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -79,7 +82,7 @@ internal object AggMin3 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin4 : PartiQLFunction.Aggregation { +internal object Agg_MIN__INT__INT : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -95,7 +98,7 @@ internal object AggMin4 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin5 : PartiQLFunction.Aggregation { +internal object Agg_MIN__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -111,7 +114,7 @@ internal object AggMin5 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin6 : PartiQLFunction.Aggregation { +internal object Agg_MIN__FLOAT32__FLOAT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", @@ -127,7 +130,7 @@ internal object AggMin6 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggMin7 : PartiQLFunction.Aggregation { +internal object Agg_MIN__FLOAT64__FLOAT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "min", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSome.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSome.kt index 384cf26d50..e2a0db9a9f 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSome.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSome.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -8,7 +11,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSome : PartiQLFunction.Aggregation { +internal object Agg_SOME__BOOL__BOOL : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "some", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSum.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSum.kt index b3bd1ed678..5f968caef9 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSum.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/agg/AggSum.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.agg import org.partiql.spi.function.PartiQLFunction @@ -15,7 +18,7 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum0 : PartiQLFunction.Aggregation { +internal object Agg_SUM__INT8__INT8 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -31,7 +34,7 @@ internal object AggSum0 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum1 : PartiQLFunction.Aggregation { +internal object Agg_SUM__INT16__INT16 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -47,7 +50,7 @@ internal object AggSum1 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum2 : PartiQLFunction.Aggregation { +internal object Agg_SUM__INT32__INT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -63,7 +66,7 @@ internal object AggSum2 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum3 : PartiQLFunction.Aggregation { +internal object Agg_SUM__INT64__INT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -79,7 +82,7 @@ internal object AggSum3 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum4 : PartiQLFunction.Aggregation { +internal object Agg_SUM__INT__INT : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -95,7 +98,7 @@ internal object AggSum4 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum5 : PartiQLFunction.Aggregation { +internal object Agg_SUM__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -111,7 +114,7 @@ internal object AggSum5 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum6 : PartiQLFunction.Aggregation { +internal object Agg_SUM__FLOAT32__FLOAT32 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", @@ -127,7 +130,7 @@ internal object AggSum6 : PartiQLFunction.Aggregation { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object AggSum7 : PartiQLFunction.Aggregation { +internal object Agg_SUM__FLOAT64__FLOAT64 : PartiQLFunction.Aggregation { override val signature = FunctionSignature.Aggregation( name = "sum", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnAnd.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnAnd.kt index bb81588a04..98a766abf6 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnAnd.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnAnd.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,12 +13,15 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.MISSING @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnAnd0 : PartiQLFunction.Scalar { +internal object Fn_AND__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "and", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = false, isNullable = true, ) @@ -26,12 +32,15 @@ internal object FnAnd0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnAnd1 : PartiQLFunction.Scalar { +internal object Fn_AND__MISSING_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "and", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", MISSING), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", MISSING), + FunctionParameter("rhs", BOOL), + ), isNullCall = false, isNullable = true, ) @@ -42,12 +51,15 @@ internal object FnAnd1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnAnd2 : PartiQLFunction.Scalar { +internal object Fn_AND__BOOL_MISSING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "and", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", MISSING)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", MISSING), + ), isNullCall = false, isNullable = true, ) @@ -58,12 +70,15 @@ internal object FnAnd2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnAnd3 : PartiQLFunction.Scalar { +internal object Fn_AND__MISSING_MISSING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "and", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", MISSING), FunctionParameter("rhs", MISSING)), + parameters = listOf( + FunctionParameter("lhs", MISSING), + FunctionParameter("rhs", MISSING), + ), isNullCall = false, isNullable = true, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBetween.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBetween.kt index 6cf6ab28eb..1846d87083 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBetween.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBetween.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -23,7 +26,7 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween0 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__INT8_INT8_INT8__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -31,7 +34,7 @@ internal object FnBetween0 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", INT8), FunctionParameter("lower", INT8), - FunctionParameter("upper", INT8) + FunctionParameter("upper", INT8), ), isNullCall = true, isNullable = false, @@ -43,7 +46,7 @@ internal object FnBetween0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween1 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__INT16_INT16_INT16__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -51,7 +54,7 @@ internal object FnBetween1 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", INT16), FunctionParameter("lower", INT16), - FunctionParameter("upper", INT16) + FunctionParameter("upper", INT16), ), isNullCall = true, isNullable = false, @@ -63,7 +66,7 @@ internal object FnBetween1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween2 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__INT32_INT32_INT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -71,7 +74,7 @@ internal object FnBetween2 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", INT32), FunctionParameter("lower", INT32), - FunctionParameter("upper", INT32) + FunctionParameter("upper", INT32), ), isNullCall = true, isNullable = false, @@ -83,7 +86,7 @@ internal object FnBetween2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween3 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__INT64_INT64_INT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -91,7 +94,7 @@ internal object FnBetween3 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", INT64), FunctionParameter("lower", INT64), - FunctionParameter("upper", INT64) + FunctionParameter("upper", INT64), ), isNullCall = true, isNullable = false, @@ -103,7 +106,7 @@ internal object FnBetween3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween4 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__INT_INT_INT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -111,7 +114,7 @@ internal object FnBetween4 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", INT), FunctionParameter("lower", INT), - FunctionParameter("upper", INT) + FunctionParameter("upper", INT), ), isNullCall = true, isNullable = false, @@ -123,7 +126,7 @@ internal object FnBetween4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween5 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -131,7 +134,7 @@ internal object FnBetween5 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", DECIMAL_ARBITRARY), FunctionParameter("lower", DECIMAL_ARBITRARY), - FunctionParameter("upper", DECIMAL_ARBITRARY) + FunctionParameter("upper", DECIMAL_ARBITRARY), ), isNullCall = true, isNullable = false, @@ -143,7 +146,7 @@ internal object FnBetween5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween6 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__FLOAT32_FLOAT32_FLOAT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -151,7 +154,7 @@ internal object FnBetween6 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", FLOAT32), FunctionParameter("lower", FLOAT32), - FunctionParameter("upper", FLOAT32) + FunctionParameter("upper", FLOAT32), ), isNullCall = true, isNullable = false, @@ -163,7 +166,7 @@ internal object FnBetween6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween7 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__FLOAT64_FLOAT64_FLOAT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -171,7 +174,7 @@ internal object FnBetween7 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", FLOAT64), FunctionParameter("lower", FLOAT64), - FunctionParameter("upper", FLOAT64) + FunctionParameter("upper", FLOAT64), ), isNullCall = true, isNullable = false, @@ -183,7 +186,7 @@ internal object FnBetween7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween8 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__STRING_STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -191,7 +194,7 @@ internal object FnBetween8 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", STRING), FunctionParameter("lower", STRING), - FunctionParameter("upper", STRING) + FunctionParameter("upper", STRING), ), isNullCall = true, isNullable = false, @@ -203,7 +206,7 @@ internal object FnBetween8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween9 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__SYMBOL_SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -211,7 +214,7 @@ internal object FnBetween9 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", SYMBOL), FunctionParameter("lower", SYMBOL), - FunctionParameter("upper", SYMBOL) + FunctionParameter("upper", SYMBOL), ), isNullCall = true, isNullable = false, @@ -223,7 +226,7 @@ internal object FnBetween9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween10 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__CLOB_CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -231,7 +234,7 @@ internal object FnBetween10 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", CLOB), FunctionParameter("lower", CLOB), - FunctionParameter("upper", CLOB) + FunctionParameter("upper", CLOB), ), isNullCall = true, isNullable = false, @@ -243,7 +246,7 @@ internal object FnBetween10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween11 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__DATE_DATE_DATE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -251,7 +254,7 @@ internal object FnBetween11 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", DATE), FunctionParameter("lower", DATE), - FunctionParameter("upper", DATE) + FunctionParameter("upper", DATE), ), isNullCall = true, isNullable = false, @@ -263,7 +266,7 @@ internal object FnBetween11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween12 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__TIME_TIME_TIME__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -271,7 +274,7 @@ internal object FnBetween12 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", TIME), FunctionParameter("lower", TIME), - FunctionParameter("upper", TIME) + FunctionParameter("upper", TIME), ), isNullCall = true, isNullable = false, @@ -283,7 +286,7 @@ internal object FnBetween12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBetween13 : PartiQLFunction.Scalar { +internal object Fn_BETWEEN__TIMESTAMP_TIMESTAMP_TIMESTAMP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "between", @@ -291,7 +294,7 @@ internal object FnBetween13 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", TIMESTAMP), FunctionParameter("lower", TIMESTAMP), - FunctionParameter("upper", TIMESTAMP) + FunctionParameter("upper", TIMESTAMP), ), isNullCall = true, isNullable = false, diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBitwiseAnd.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBitwiseAnd.kt index 197a9277a0..e3e49f58ac 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBitwiseAnd.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnBitwiseAnd.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -13,12 +16,15 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBitwiseAnd0 : PartiQLFunction.Scalar { +internal object Fn_BITWISE_AND__INT8_INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "bitwise_and", returns = INT8, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -29,12 +35,15 @@ internal object FnBitwiseAnd0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBitwiseAnd1 : PartiQLFunction.Scalar { +internal object Fn_BITWISE_AND__INT16_INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "bitwise_and", returns = INT16, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -45,12 +54,15 @@ internal object FnBitwiseAnd1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBitwiseAnd2 : PartiQLFunction.Scalar { +internal object Fn_BITWISE_AND__INT32_INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "bitwise_and", returns = INT32, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -61,12 +73,15 @@ internal object FnBitwiseAnd2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBitwiseAnd3 : PartiQLFunction.Scalar { +internal object Fn_BITWISE_AND__INT64_INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "bitwise_and", returns = INT64, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -77,12 +92,15 @@ internal object FnBitwiseAnd3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnBitwiseAnd4 : PartiQLFunction.Scalar { +internal object Fn_BITWISE_AND__INT_INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "bitwise_and", returns = INT, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnConcat.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnConcat.kt index ef3b9ecebb..87bfddb5a7 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnConcat.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnConcat.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,12 +14,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnConcat0 : PartiQLFunction.Scalar { +internal object Fn_CONCAT__STRING_STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "concat", returns = STRING, - parameters = listOf(FunctionParameter("lhs", STRING), FunctionParameter("rhs", STRING)), + parameters = listOf( + FunctionParameter("lhs", STRING), + FunctionParameter("rhs", STRING), + ), isNullCall = true, isNullable = false, ) @@ -27,12 +33,15 @@ internal object FnConcat0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnConcat1 : PartiQLFunction.Scalar { +internal object Fn_CONCAT__SYMBOL_SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "concat", returns = SYMBOL, - parameters = listOf(FunctionParameter("lhs", SYMBOL), FunctionParameter("rhs", SYMBOL)), + parameters = listOf( + FunctionParameter("lhs", SYMBOL), + FunctionParameter("rhs", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -43,12 +52,15 @@ internal object FnConcat1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnConcat2 : PartiQLFunction.Scalar { +internal object Fn_CONCAT__CLOB_CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "concat", returns = CLOB, - parameters = listOf(FunctionParameter("lhs", CLOB), FunctionParameter("rhs", CLOB)), + parameters = listOf( + FunctionParameter("lhs", CLOB), + FunctionParameter("rhs", CLOB), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentDate.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentDate.kt index 4c7e4ada4c..ad35637073 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentDate.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentDate.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -8,7 +11,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.DATE @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnCurrentDate : PartiQLFunction.Scalar { +internal object Fn_CURRENT_DATE____DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "current_date", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentUser.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentUser.kt index f0bb0134af..ecffa79585 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentUser.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnCurrentUser.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -8,7 +11,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.STRING @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnCurrentUser : PartiQLFunction.Scalar { +internal object Fn_CURRENT_USER____STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "current_user", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddDay.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddDay.kt index 449cb12d80..eb496c3c6b 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddDay.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddDay.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -14,12 +17,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay0 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT32_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -30,12 +36,15 @@ internal object FnDateAddDay0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay1 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT64_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -46,12 +55,15 @@ internal object FnDateAddDay1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay2 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -62,12 +74,15 @@ internal object FnDateAddDay2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay3 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT32_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -78,12 +93,15 @@ internal object FnDateAddDay3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay4 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT64_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -94,12 +112,15 @@ internal object FnDateAddDay4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay5 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -110,12 +131,15 @@ internal object FnDateAddDay5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay6 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT32_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -126,12 +150,15 @@ internal object FnDateAddDay6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay7 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT64_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -142,12 +169,15 @@ internal object FnDateAddDay7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddDay8 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_DAY__INT_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_day", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddHour.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddHour.kt index 753d3a854c..1171813821 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddHour.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddHour.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -14,12 +17,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour0 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT32_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -30,12 +36,15 @@ internal object FnDateAddHour0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour1 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT64_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -46,12 +55,15 @@ internal object FnDateAddHour1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour2 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -62,12 +74,15 @@ internal object FnDateAddHour2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour3 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT32_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -78,12 +93,15 @@ internal object FnDateAddHour3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour4 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT64_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -94,12 +112,15 @@ internal object FnDateAddHour4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour5 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -110,12 +131,15 @@ internal object FnDateAddHour5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour6 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT32_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -126,12 +150,15 @@ internal object FnDateAddHour6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour7 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT64_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -142,12 +169,15 @@ internal object FnDateAddHour7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddHour8 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_HOUR__INT_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_hour", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMinute.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMinute.kt index d6ebae81fd..e8116bfb32 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMinute.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMinute.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -14,12 +17,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute0 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT32_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -30,12 +36,15 @@ internal object FnDateAddMinute0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute1 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT64_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -46,12 +55,15 @@ internal object FnDateAddMinute1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute2 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -62,12 +74,15 @@ internal object FnDateAddMinute2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute3 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT32_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -78,12 +93,15 @@ internal object FnDateAddMinute3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute4 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT64_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -94,12 +112,15 @@ internal object FnDateAddMinute4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute5 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -110,12 +131,15 @@ internal object FnDateAddMinute5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute6 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT32_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -126,12 +150,15 @@ internal object FnDateAddMinute6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute7 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT64_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -142,12 +169,15 @@ internal object FnDateAddMinute7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMinute8 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MINUTE__INT_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_minute", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMonth.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMonth.kt index b7c0f74aab..e259577507 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMonth.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddMonth.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -14,12 +17,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth0 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT32_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -30,12 +36,15 @@ internal object FnDateAddMonth0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth1 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT64_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -46,12 +55,15 @@ internal object FnDateAddMonth1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth2 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -62,12 +74,15 @@ internal object FnDateAddMonth2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth3 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT32_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -78,12 +93,15 @@ internal object FnDateAddMonth3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth4 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT64_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -94,12 +112,15 @@ internal object FnDateAddMonth4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth5 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -110,12 +131,15 @@ internal object FnDateAddMonth5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth6 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT32_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -126,12 +150,15 @@ internal object FnDateAddMonth6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth7 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT64_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -142,12 +169,15 @@ internal object FnDateAddMonth7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddMonth8 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_MONTH__INT_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_month", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddSecond.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddSecond.kt index 73e036fc26..65601ca89c 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddSecond.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddSecond.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -14,12 +17,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond0 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT32_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -30,12 +36,15 @@ internal object FnDateAddSecond0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond1 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT64_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -46,12 +55,15 @@ internal object FnDateAddSecond1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond2 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -62,12 +74,15 @@ internal object FnDateAddSecond2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond3 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT32_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -78,12 +93,15 @@ internal object FnDateAddSecond3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond4 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT64_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -94,12 +112,15 @@ internal object FnDateAddSecond4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond5 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -110,12 +131,15 @@ internal object FnDateAddSecond5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond6 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT32_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -126,12 +150,15 @@ internal object FnDateAddSecond6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond7 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT64_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -142,12 +169,15 @@ internal object FnDateAddSecond7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddSecond8 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_SECOND__INT_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_second", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddYear.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddYear.kt index d712885a87..54aca72711 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddYear.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateAddYear.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -14,12 +17,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear0 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT32_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -30,12 +36,15 @@ internal object FnDateAddYear0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear1 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT64_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -46,12 +55,15 @@ internal object FnDateAddYear1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear2 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT_DATE__DATE : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = DATE, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", DATE)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", DATE), + ), isNullCall = true, isNullable = false, ) @@ -62,12 +74,15 @@ internal object FnDateAddYear2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear3 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT32_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -78,12 +93,15 @@ internal object FnDateAddYear3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear4 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT64_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -94,12 +112,15 @@ internal object FnDateAddYear4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear5 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT_TIME__TIME : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = TIME, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIME)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIME), + ), isNullCall = true, isNullable = false, ) @@ -110,12 +131,15 @@ internal object FnDateAddYear5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear6 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT32_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT32), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT32), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -126,12 +150,15 @@ internal object FnDateAddYear6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear7 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT64_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT64), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT64), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -142,12 +169,15 @@ internal object FnDateAddYear7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateAddYear8 : PartiQLFunction.Scalar { +internal object Fn_DATE_ADD_YEAR__INT_TIMESTAMP__TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_add_year", returns = TIMESTAMP, - parameters = listOf(FunctionParameter("interval", INT), FunctionParameter("datetime", TIMESTAMP)), + parameters = listOf( + FunctionParameter("interval", INT), + FunctionParameter("datetime", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffDay.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffDay.kt index 22a205b26f..8c60b69255 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffDay.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffDay.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffDay0 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_DAY__DATE_DATE__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_day", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", DATE), FunctionParameter("datetime2", DATE)), + parameters = listOf( + FunctionParameter("datetime1", DATE), + FunctionParameter("datetime2", DATE), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnDateDiffDay0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffDay1 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_DAY__TIME_TIME__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_day", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIME), FunctionParameter("datetime2", TIME)), + parameters = listOf( + FunctionParameter("datetime1", TIME), + FunctionParameter("datetime2", TIME), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnDateDiffDay1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffDay2 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_DAY__TIMESTAMP_TIMESTAMP__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_day", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIMESTAMP), FunctionParameter("datetime2", TIMESTAMP)), + parameters = listOf( + FunctionParameter("datetime1", TIMESTAMP), + FunctionParameter("datetime2", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffHour.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffHour.kt index 556aaaab31..c08632a289 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffHour.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffHour.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffHour0 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_HOUR__DATE_DATE__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_hour", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", DATE), FunctionParameter("datetime2", DATE)), + parameters = listOf( + FunctionParameter("datetime1", DATE), + FunctionParameter("datetime2", DATE), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnDateDiffHour0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffHour1 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_HOUR__TIME_TIME__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_hour", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIME), FunctionParameter("datetime2", TIME)), + parameters = listOf( + FunctionParameter("datetime1", TIME), + FunctionParameter("datetime2", TIME), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnDateDiffHour1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffHour2 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_HOUR__TIMESTAMP_TIMESTAMP__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_hour", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIMESTAMP), FunctionParameter("datetime2", TIMESTAMP)), + parameters = listOf( + FunctionParameter("datetime1", TIMESTAMP), + FunctionParameter("datetime2", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMinute.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMinute.kt index 886eee96bb..c9122dc102 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMinute.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMinute.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffMinute0 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_MINUTE__DATE_DATE__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_minute", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", DATE), FunctionParameter("datetime2", DATE)), + parameters = listOf( + FunctionParameter("datetime1", DATE), + FunctionParameter("datetime2", DATE), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnDateDiffMinute0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffMinute1 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_MINUTE__TIME_TIME__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_minute", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIME), FunctionParameter("datetime2", TIME)), + parameters = listOf( + FunctionParameter("datetime1", TIME), + FunctionParameter("datetime2", TIME), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnDateDiffMinute1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffMinute2 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_MINUTE__TIMESTAMP_TIMESTAMP__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_minute", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIMESTAMP), FunctionParameter("datetime2", TIMESTAMP)), + parameters = listOf( + FunctionParameter("datetime1", TIMESTAMP), + FunctionParameter("datetime2", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMonth.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMonth.kt index 0db26ba7d1..1cd006df2d 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMonth.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffMonth.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffMonth0 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_MONTH__DATE_DATE__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_month", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", DATE), FunctionParameter("datetime2", DATE)), + parameters = listOf( + FunctionParameter("datetime1", DATE), + FunctionParameter("datetime2", DATE), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnDateDiffMonth0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffMonth1 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_MONTH__TIME_TIME__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_month", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIME), FunctionParameter("datetime2", TIME)), + parameters = listOf( + FunctionParameter("datetime1", TIME), + FunctionParameter("datetime2", TIME), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnDateDiffMonth1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffMonth2 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_MONTH__TIMESTAMP_TIMESTAMP__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_month", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIMESTAMP), FunctionParameter("datetime2", TIMESTAMP)), + parameters = listOf( + FunctionParameter("datetime1", TIMESTAMP), + FunctionParameter("datetime2", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffSecond.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffSecond.kt index d116b00c36..6adee6358f 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffSecond.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffSecond.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffSecond0 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_SECOND__DATE_DATE__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_second", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", DATE), FunctionParameter("datetime2", DATE)), + parameters = listOf( + FunctionParameter("datetime1", DATE), + FunctionParameter("datetime2", DATE), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnDateDiffSecond0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffSecond1 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_SECOND__TIME_TIME__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_second", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIME), FunctionParameter("datetime2", TIME)), + parameters = listOf( + FunctionParameter("datetime1", TIME), + FunctionParameter("datetime2", TIME), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnDateDiffSecond1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffSecond2 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_SECOND__TIMESTAMP_TIMESTAMP__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_second", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIMESTAMP), FunctionParameter("datetime2", TIMESTAMP)), + parameters = listOf( + FunctionParameter("datetime1", TIMESTAMP), + FunctionParameter("datetime2", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffYear.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffYear.kt index 0be8820ace..7e0bdba66c 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffYear.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDateDiffYear.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffYear0 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_YEAR__DATE_DATE__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_year", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", DATE), FunctionParameter("datetime2", DATE)), + parameters = listOf( + FunctionParameter("datetime1", DATE), + FunctionParameter("datetime2", DATE), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnDateDiffYear0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffYear1 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_YEAR__TIME_TIME__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_year", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIME), FunctionParameter("datetime2", TIME)), + parameters = listOf( + FunctionParameter("datetime1", TIME), + FunctionParameter("datetime2", TIME), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnDateDiffYear1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDateDiffYear2 : PartiQLFunction.Scalar { +internal object Fn_DATE_DIFF_YEAR__TIMESTAMP_TIMESTAMP__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "date_diff_year", returns = INT64, - parameters = listOf(FunctionParameter("datetime1", TIMESTAMP), FunctionParameter("datetime2", TIMESTAMP)), + parameters = listOf( + FunctionParameter("datetime1", TIMESTAMP), + FunctionParameter("datetime2", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDivide.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDivide.kt index 04f32e29bd..325201b309 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDivide.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnDivide.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,12 +19,15 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide0 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__INT8_INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = INT8, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -32,12 +38,15 @@ internal object FnDivide0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide1 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__INT16_INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = INT16, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -48,12 +57,15 @@ internal object FnDivide1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide2 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__INT32_INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = INT32, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -64,12 +76,15 @@ internal object FnDivide2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide3 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__INT64_INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = INT64, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -80,12 +95,15 @@ internal object FnDivide3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide4 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__INT_INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = INT, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -96,12 +114,15 @@ internal object FnDivide4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide5 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = DECIMAL_ARBITRARY, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -112,12 +133,15 @@ internal object FnDivide5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide6 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__FLOAT32_FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = FLOAT32, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -128,12 +152,15 @@ internal object FnDivide6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnDivide7 : PartiQLFunction.Scalar { +internal object Fn_DIVIDE__FLOAT64_FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "divide", returns = FLOAT64, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnEq.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnEq.kt index 38956f2c06..86c81a4d8e 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnEq.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnEq.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -36,12 +39,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq0 : PartiQLFunction.Scalar { +internal object Fn_EQ__ANY_ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", ANY), FunctionParameter("rhs", ANY)), + parameters = listOf( + FunctionParameter("lhs", ANY), + FunctionParameter("rhs", ANY), + ), isNullCall = true, isNullable = false, ) @@ -52,12 +58,15 @@ internal object FnEq0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq1 : PartiQLFunction.Scalar { +internal object Fn_EQ__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = true, isNullable = false, ) @@ -68,12 +77,15 @@ internal object FnEq1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq2 : PartiQLFunction.Scalar { +internal object Fn_EQ__INT8_INT8__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -84,12 +96,15 @@ internal object FnEq2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq3 : PartiQLFunction.Scalar { +internal object Fn_EQ__INT16_INT16__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -100,12 +115,15 @@ internal object FnEq3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq4 : PartiQLFunction.Scalar { +internal object Fn_EQ__INT32_INT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -116,12 +134,15 @@ internal object FnEq4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq5 : PartiQLFunction.Scalar { +internal object Fn_EQ__INT64_INT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -132,12 +153,15 @@ internal object FnEq5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq6 : PartiQLFunction.Scalar { +internal object Fn_EQ__INT_INT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -148,12 +172,15 @@ internal object FnEq6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq7 : PartiQLFunction.Scalar { +internal object Fn_EQ__DECIMAL_DECIMAL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DECIMAL), FunctionParameter("rhs", DECIMAL)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL), + FunctionParameter("rhs", DECIMAL), + ), isNullCall = true, isNullable = false, ) @@ -164,12 +191,15 @@ internal object FnEq7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq8 : PartiQLFunction.Scalar { +internal object Fn_EQ__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -180,12 +210,15 @@ internal object FnEq8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq9 : PartiQLFunction.Scalar { +internal object Fn_EQ__FLOAT32_FLOAT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -196,12 +229,15 @@ internal object FnEq9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq10 : PartiQLFunction.Scalar { +internal object Fn_EQ__FLOAT64_FLOAT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) @@ -212,12 +248,15 @@ internal object FnEq10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq11 : PartiQLFunction.Scalar { +internal object Fn_EQ__CHAR_CHAR__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", CHAR), FunctionParameter("rhs", CHAR)), + parameters = listOf( + FunctionParameter("lhs", CHAR), + FunctionParameter("rhs", CHAR), + ), isNullCall = true, isNullable = false, ) @@ -228,12 +267,15 @@ internal object FnEq11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq12 : PartiQLFunction.Scalar { +internal object Fn_EQ__STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", STRING), FunctionParameter("rhs", STRING)), + parameters = listOf( + FunctionParameter("lhs", STRING), + FunctionParameter("rhs", STRING), + ), isNullCall = true, isNullable = false, ) @@ -244,12 +286,15 @@ internal object FnEq12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq13 : PartiQLFunction.Scalar { +internal object Fn_EQ__SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", SYMBOL), FunctionParameter("rhs", SYMBOL)), + parameters = listOf( + FunctionParameter("lhs", SYMBOL), + FunctionParameter("rhs", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -260,12 +305,15 @@ internal object FnEq13 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq14 : PartiQLFunction.Scalar { +internal object Fn_EQ__BINARY_BINARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BINARY), FunctionParameter("rhs", BINARY)), + parameters = listOf( + FunctionParameter("lhs", BINARY), + FunctionParameter("rhs", BINARY), + ), isNullCall = true, isNullable = false, ) @@ -276,12 +324,15 @@ internal object FnEq14 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq15 : PartiQLFunction.Scalar { +internal object Fn_EQ__BYTE_BYTE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BYTE), FunctionParameter("rhs", BYTE)), + parameters = listOf( + FunctionParameter("lhs", BYTE), + FunctionParameter("rhs", BYTE), + ), isNullCall = true, isNullable = false, ) @@ -292,12 +343,15 @@ internal object FnEq15 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq16 : PartiQLFunction.Scalar { +internal object Fn_EQ__BLOB_BLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BLOB), FunctionParameter("rhs", BLOB)), + parameters = listOf( + FunctionParameter("lhs", BLOB), + FunctionParameter("rhs", BLOB), + ), isNullCall = true, isNullable = false, ) @@ -308,12 +362,15 @@ internal object FnEq16 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq17 : PartiQLFunction.Scalar { +internal object Fn_EQ__CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", CLOB), FunctionParameter("rhs", CLOB)), + parameters = listOf( + FunctionParameter("lhs", CLOB), + FunctionParameter("rhs", CLOB), + ), isNullCall = true, isNullable = false, ) @@ -324,12 +381,15 @@ internal object FnEq17 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq18 : PartiQLFunction.Scalar { +internal object Fn_EQ__DATE_DATE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DATE), FunctionParameter("rhs", DATE)), + parameters = listOf( + FunctionParameter("lhs", DATE), + FunctionParameter("rhs", DATE), + ), isNullCall = true, isNullable = false, ) @@ -340,12 +400,15 @@ internal object FnEq18 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq19 : PartiQLFunction.Scalar { +internal object Fn_EQ__TIME_TIME__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIME), FunctionParameter("rhs", TIME)), + parameters = listOf( + FunctionParameter("lhs", TIME), + FunctionParameter("rhs", TIME), + ), isNullCall = true, isNullable = false, ) @@ -356,12 +419,15 @@ internal object FnEq19 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq20 : PartiQLFunction.Scalar { +internal object Fn_EQ__TIMESTAMP_TIMESTAMP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIMESTAMP), FunctionParameter("rhs", TIMESTAMP)), + parameters = listOf( + FunctionParameter("lhs", TIMESTAMP), + FunctionParameter("rhs", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -372,12 +438,15 @@ internal object FnEq20 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq21 : PartiQLFunction.Scalar { +internal object Fn_EQ__INTERVAL_INTERVAL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INTERVAL), FunctionParameter("rhs", INTERVAL)), + parameters = listOf( + FunctionParameter("lhs", INTERVAL), + FunctionParameter("rhs", INTERVAL), + ), isNullCall = true, isNullable = false, ) @@ -388,12 +457,15 @@ internal object FnEq21 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq22 : PartiQLFunction.Scalar { +internal object Fn_EQ__BAG_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BAG), FunctionParameter("rhs", BAG)), + parameters = listOf( + FunctionParameter("lhs", BAG), + FunctionParameter("rhs", BAG), + ), isNullCall = true, isNullable = false, ) @@ -404,12 +476,15 @@ internal object FnEq22 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq23 : PartiQLFunction.Scalar { +internal object Fn_EQ__LIST_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", LIST), FunctionParameter("rhs", LIST)), + parameters = listOf( + FunctionParameter("lhs", LIST), + FunctionParameter("rhs", LIST), + ), isNullCall = true, isNullable = false, ) @@ -420,12 +495,15 @@ internal object FnEq23 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq24 : PartiQLFunction.Scalar { +internal object Fn_EQ__SEXP_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", SEXP), FunctionParameter("rhs", SEXP)), + parameters = listOf( + FunctionParameter("lhs", SEXP), + FunctionParameter("rhs", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -436,12 +514,15 @@ internal object FnEq24 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq25 : PartiQLFunction.Scalar { +internal object Fn_EQ__STRUCT_STRUCT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", STRUCT), FunctionParameter("rhs", STRUCT)), + parameters = listOf( + FunctionParameter("lhs", STRUCT), + FunctionParameter("rhs", STRUCT), + ), isNullCall = true, isNullable = false, ) @@ -452,12 +533,15 @@ internal object FnEq25 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq26 : PartiQLFunction.Scalar { +internal object Fn_EQ__NULL_NULL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", NULL), FunctionParameter("rhs", NULL)), + parameters = listOf( + FunctionParameter("lhs", NULL), + FunctionParameter("rhs", NULL), + ), isNullCall = true, isNullable = false, ) @@ -468,12 +552,15 @@ internal object FnEq26 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnEq27 : PartiQLFunction.Scalar { +internal object Fn_EQ__MISSING_MISSING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "eq", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", MISSING), FunctionParameter("rhs", MISSING)), + parameters = listOf( + FunctionParameter("lhs", MISSING), + FunctionParameter("rhs", MISSING), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGt.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGt.kt index d15fffa9df..144aa13054 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGt.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGt.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -23,12 +26,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt0 : PartiQLFunction.Scalar { +internal object Fn_GT__INT8_INT8__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -39,12 +45,15 @@ internal object FnGt0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt1 : PartiQLFunction.Scalar { +internal object Fn_GT__INT16_INT16__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -55,12 +64,15 @@ internal object FnGt1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt2 : PartiQLFunction.Scalar { +internal object Fn_GT__INT32_INT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -71,12 +83,15 @@ internal object FnGt2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt3 : PartiQLFunction.Scalar { +internal object Fn_GT__INT64_INT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -87,12 +102,15 @@ internal object FnGt3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt4 : PartiQLFunction.Scalar { +internal object Fn_GT__INT_INT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -103,12 +121,15 @@ internal object FnGt4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt5 : PartiQLFunction.Scalar { +internal object Fn_GT__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -119,12 +140,15 @@ internal object FnGt5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt6 : PartiQLFunction.Scalar { +internal object Fn_GT__FLOAT32_FLOAT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -135,12 +159,15 @@ internal object FnGt6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt7 : PartiQLFunction.Scalar { +internal object Fn_GT__FLOAT64_FLOAT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) @@ -151,12 +178,15 @@ internal object FnGt7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt8 : PartiQLFunction.Scalar { +internal object Fn_GT__STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", STRING), FunctionParameter("rhs", STRING)), + parameters = listOf( + FunctionParameter("lhs", STRING), + FunctionParameter("rhs", STRING), + ), isNullCall = true, isNullable = false, ) @@ -167,12 +197,15 @@ internal object FnGt8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt9 : PartiQLFunction.Scalar { +internal object Fn_GT__SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", SYMBOL), FunctionParameter("rhs", SYMBOL)), + parameters = listOf( + FunctionParameter("lhs", SYMBOL), + FunctionParameter("rhs", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -183,12 +216,15 @@ internal object FnGt9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt10 : PartiQLFunction.Scalar { +internal object Fn_GT__CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", CLOB), FunctionParameter("rhs", CLOB)), + parameters = listOf( + FunctionParameter("lhs", CLOB), + FunctionParameter("rhs", CLOB), + ), isNullCall = true, isNullable = false, ) @@ -199,12 +235,15 @@ internal object FnGt10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt11 : PartiQLFunction.Scalar { +internal object Fn_GT__DATE_DATE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DATE), FunctionParameter("rhs", DATE)), + parameters = listOf( + FunctionParameter("lhs", DATE), + FunctionParameter("rhs", DATE), + ), isNullCall = true, isNullable = false, ) @@ -215,12 +254,15 @@ internal object FnGt11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt12 : PartiQLFunction.Scalar { +internal object Fn_GT__TIME_TIME__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIME), FunctionParameter("rhs", TIME)), + parameters = listOf( + FunctionParameter("lhs", TIME), + FunctionParameter("rhs", TIME), + ), isNullCall = true, isNullable = false, ) @@ -231,12 +273,15 @@ internal object FnGt12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt13 : PartiQLFunction.Scalar { +internal object Fn_GT__TIMESTAMP_TIMESTAMP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIMESTAMP), FunctionParameter("rhs", TIMESTAMP)), + parameters = listOf( + FunctionParameter("lhs", TIMESTAMP), + FunctionParameter("rhs", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -247,12 +292,15 @@ internal object FnGt13 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGt14 : PartiQLFunction.Scalar { +internal object Fn_GT__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGte.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGte.kt index 1a6e003b8c..e38b87003f 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGte.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnGte.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -23,12 +26,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte0 : PartiQLFunction.Scalar { +internal object Fn_GTE__INT8_INT8__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -39,12 +45,15 @@ internal object FnGte0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte1 : PartiQLFunction.Scalar { +internal object Fn_GTE__INT16_INT16__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -55,12 +64,15 @@ internal object FnGte1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte2 : PartiQLFunction.Scalar { +internal object Fn_GTE__INT32_INT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -71,12 +83,15 @@ internal object FnGte2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte3 : PartiQLFunction.Scalar { +internal object Fn_GTE__INT64_INT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -87,12 +102,15 @@ internal object FnGte3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte4 : PartiQLFunction.Scalar { +internal object Fn_GTE__INT_INT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -103,12 +121,15 @@ internal object FnGte4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte5 : PartiQLFunction.Scalar { +internal object Fn_GTE__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -119,12 +140,15 @@ internal object FnGte5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte6 : PartiQLFunction.Scalar { +internal object Fn_GTE__FLOAT32_FLOAT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -135,12 +159,15 @@ internal object FnGte6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte7 : PartiQLFunction.Scalar { +internal object Fn_GTE__FLOAT64_FLOAT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) @@ -151,12 +178,15 @@ internal object FnGte7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte8 : PartiQLFunction.Scalar { +internal object Fn_GTE__STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", STRING), FunctionParameter("rhs", STRING)), + parameters = listOf( + FunctionParameter("lhs", STRING), + FunctionParameter("rhs", STRING), + ), isNullCall = true, isNullable = false, ) @@ -167,12 +197,15 @@ internal object FnGte8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte9 : PartiQLFunction.Scalar { +internal object Fn_GTE__SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", SYMBOL), FunctionParameter("rhs", SYMBOL)), + parameters = listOf( + FunctionParameter("lhs", SYMBOL), + FunctionParameter("rhs", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -183,12 +216,15 @@ internal object FnGte9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte10 : PartiQLFunction.Scalar { +internal object Fn_GTE__CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", CLOB), FunctionParameter("rhs", CLOB)), + parameters = listOf( + FunctionParameter("lhs", CLOB), + FunctionParameter("rhs", CLOB), + ), isNullCall = true, isNullable = false, ) @@ -199,12 +235,15 @@ internal object FnGte10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte11 : PartiQLFunction.Scalar { +internal object Fn_GTE__DATE_DATE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DATE), FunctionParameter("rhs", DATE)), + parameters = listOf( + FunctionParameter("lhs", DATE), + FunctionParameter("rhs", DATE), + ), isNullCall = true, isNullable = false, ) @@ -215,12 +254,15 @@ internal object FnGte11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte12 : PartiQLFunction.Scalar { +internal object Fn_GTE__TIME_TIME__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIME), FunctionParameter("rhs", TIME)), + parameters = listOf( + FunctionParameter("lhs", TIME), + FunctionParameter("rhs", TIME), + ), isNullCall = true, isNullable = false, ) @@ -231,12 +273,15 @@ internal object FnGte12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte13 : PartiQLFunction.Scalar { +internal object Fn_GTE__TIMESTAMP_TIMESTAMP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIMESTAMP), FunctionParameter("rhs", TIMESTAMP)), + parameters = listOf( + FunctionParameter("lhs", TIMESTAMP), + FunctionParameter("rhs", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -247,12 +292,15 @@ internal object FnGte13 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnGte14 : PartiQLFunction.Scalar { +internal object Fn_GTE__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "gte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnInCollection.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnInCollection.kt index a8aebe8f31..bf59e0e619 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnInCollection.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnInCollection.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -36,12 +39,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection0 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__ANY_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", ANY), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", ANY), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -52,12 +58,15 @@ internal object FnInCollection0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection1 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__ANY_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", ANY), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", ANY), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -68,12 +77,15 @@ internal object FnInCollection1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection2 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__ANY_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", ANY), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", ANY), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -84,12 +96,15 @@ internal object FnInCollection2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection3 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BOOL_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BOOL), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", BOOL), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -100,12 +115,15 @@ internal object FnInCollection3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection4 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BOOL_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BOOL), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", BOOL), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -116,12 +134,15 @@ internal object FnInCollection4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection5 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BOOL_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BOOL), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", BOOL), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -132,12 +153,15 @@ internal object FnInCollection5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection6 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT8_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT8), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", INT8), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -148,12 +172,15 @@ internal object FnInCollection6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection7 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT8_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT8), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", INT8), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -164,12 +191,15 @@ internal object FnInCollection7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection8 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT8_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT8), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", INT8), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -180,12 +210,15 @@ internal object FnInCollection8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection9 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT16_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT16), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", INT16), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -196,12 +229,15 @@ internal object FnInCollection9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection10 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT16_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT16), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", INT16), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -212,12 +248,15 @@ internal object FnInCollection10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection11 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT16_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT16), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", INT16), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -228,12 +267,15 @@ internal object FnInCollection11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection12 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT32_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT32), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", INT32), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -244,12 +286,15 @@ internal object FnInCollection12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection13 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT32_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT32), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", INT32), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -260,12 +305,15 @@ internal object FnInCollection13 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection14 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT32_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT32), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", INT32), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -276,12 +324,15 @@ internal object FnInCollection14 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection15 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT64_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT64), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", INT64), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -292,12 +343,15 @@ internal object FnInCollection15 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection16 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT64_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT64), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", INT64), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -308,12 +362,15 @@ internal object FnInCollection16 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection17 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT64_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT64), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", INT64), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -324,12 +381,15 @@ internal object FnInCollection17 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection18 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", INT), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -340,12 +400,15 @@ internal object FnInCollection18 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection19 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", INT), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -356,12 +419,15 @@ internal object FnInCollection19 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection20 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INT_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INT), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", INT), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -372,12 +438,15 @@ internal object FnInCollection20 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection21 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DECIMAL_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DECIMAL), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", DECIMAL), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -388,12 +457,15 @@ internal object FnInCollection21 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection22 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DECIMAL_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DECIMAL), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", DECIMAL), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -404,12 +476,15 @@ internal object FnInCollection22 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection23 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DECIMAL_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DECIMAL), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", DECIMAL), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -420,12 +495,15 @@ internal object FnInCollection23 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection24 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DECIMAL_ARBITRARY_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DECIMAL_ARBITRARY), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", DECIMAL_ARBITRARY), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -436,12 +514,15 @@ internal object FnInCollection24 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection25 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DECIMAL_ARBITRARY_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DECIMAL_ARBITRARY), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", DECIMAL_ARBITRARY), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -452,12 +533,15 @@ internal object FnInCollection25 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection26 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DECIMAL_ARBITRARY_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DECIMAL_ARBITRARY), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", DECIMAL_ARBITRARY), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -468,12 +552,15 @@ internal object FnInCollection26 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection27 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__FLOAT32_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", FLOAT32), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", FLOAT32), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -484,12 +571,15 @@ internal object FnInCollection27 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection28 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__FLOAT32_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", FLOAT32), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", FLOAT32), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -500,12 +590,15 @@ internal object FnInCollection28 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection29 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__FLOAT32_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", FLOAT32), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", FLOAT32), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -516,12 +609,15 @@ internal object FnInCollection29 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection30 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__FLOAT64_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", FLOAT64), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", FLOAT64), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -532,12 +628,15 @@ internal object FnInCollection30 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection31 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__FLOAT64_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", FLOAT64), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", FLOAT64), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -548,12 +647,15 @@ internal object FnInCollection31 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection32 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__FLOAT64_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", FLOAT64), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", FLOAT64), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -564,12 +666,15 @@ internal object FnInCollection32 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection33 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__CHAR_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", CHAR), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", CHAR), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -580,12 +685,15 @@ internal object FnInCollection33 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection34 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__CHAR_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", CHAR), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", CHAR), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -596,12 +704,15 @@ internal object FnInCollection34 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection35 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__CHAR_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", CHAR), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", CHAR), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -612,12 +723,15 @@ internal object FnInCollection35 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection36 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__STRING_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -628,12 +742,15 @@ internal object FnInCollection36 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection37 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__STRING_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -644,12 +761,15 @@ internal object FnInCollection37 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection38 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__STRING_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -660,12 +780,15 @@ internal object FnInCollection38 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection39 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__SYMBOL_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -676,12 +799,15 @@ internal object FnInCollection39 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection40 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__SYMBOL_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -692,12 +818,15 @@ internal object FnInCollection40 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection41 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__SYMBOL_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -708,12 +837,15 @@ internal object FnInCollection41 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection42 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BINARY_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BINARY), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", BINARY), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -724,12 +856,15 @@ internal object FnInCollection42 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection43 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BINARY_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BINARY), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", BINARY), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -740,12 +875,15 @@ internal object FnInCollection43 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection44 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BINARY_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BINARY), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", BINARY), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -756,12 +894,15 @@ internal object FnInCollection44 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection45 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BYTE_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BYTE), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", BYTE), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -772,12 +913,15 @@ internal object FnInCollection45 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection46 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BYTE_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BYTE), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", BYTE), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -788,12 +932,15 @@ internal object FnInCollection46 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection47 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BYTE_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BYTE), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", BYTE), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -804,12 +951,15 @@ internal object FnInCollection47 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection48 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BLOB_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BLOB), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", BLOB), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -820,12 +970,15 @@ internal object FnInCollection48 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection49 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BLOB_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BLOB), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", BLOB), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -836,12 +989,15 @@ internal object FnInCollection49 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection50 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BLOB_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BLOB), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", BLOB), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -852,12 +1008,15 @@ internal object FnInCollection50 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection51 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__CLOB_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -868,12 +1027,15 @@ internal object FnInCollection51 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection52 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__CLOB_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -884,12 +1046,15 @@ internal object FnInCollection52 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection53 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__CLOB_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -900,12 +1065,15 @@ internal object FnInCollection53 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection54 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DATE_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DATE), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", DATE), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -916,12 +1084,15 @@ internal object FnInCollection54 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection55 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DATE_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DATE), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", DATE), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -932,12 +1103,15 @@ internal object FnInCollection55 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection56 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__DATE_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", DATE), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", DATE), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -948,12 +1122,15 @@ internal object FnInCollection56 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection57 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__TIME_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", TIME), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", TIME), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -964,12 +1141,15 @@ internal object FnInCollection57 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection58 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__TIME_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", TIME), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", TIME), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -980,12 +1160,15 @@ internal object FnInCollection58 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection59 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__TIME_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", TIME), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", TIME), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -996,12 +1179,15 @@ internal object FnInCollection59 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection60 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__TIMESTAMP_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", TIMESTAMP), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", TIMESTAMP), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1012,12 +1198,15 @@ internal object FnInCollection60 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection61 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__TIMESTAMP_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", TIMESTAMP), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", TIMESTAMP), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1028,12 +1217,15 @@ internal object FnInCollection61 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection62 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__TIMESTAMP_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", TIMESTAMP), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", TIMESTAMP), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1044,12 +1236,15 @@ internal object FnInCollection62 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection63 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INTERVAL_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INTERVAL), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", INTERVAL), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1060,12 +1255,15 @@ internal object FnInCollection63 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection64 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INTERVAL_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INTERVAL), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", INTERVAL), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1076,12 +1274,15 @@ internal object FnInCollection64 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection65 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__INTERVAL_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", INTERVAL), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", INTERVAL), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1092,12 +1293,15 @@ internal object FnInCollection65 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection66 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BAG_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BAG), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", BAG), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1108,12 +1312,15 @@ internal object FnInCollection66 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection67 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BAG_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BAG), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", BAG), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1124,12 +1331,15 @@ internal object FnInCollection67 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection68 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__BAG_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", BAG), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", BAG), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1140,12 +1350,15 @@ internal object FnInCollection68 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection69 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__LIST_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", LIST), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", LIST), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1156,12 +1369,15 @@ internal object FnInCollection69 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection70 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__LIST_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", LIST), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", LIST), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1172,12 +1388,15 @@ internal object FnInCollection70 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection71 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__LIST_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", LIST), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", LIST), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1188,12 +1407,15 @@ internal object FnInCollection71 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection72 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__SEXP_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", SEXP), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", SEXP), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1204,12 +1426,15 @@ internal object FnInCollection72 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection73 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__SEXP_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", SEXP), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", SEXP), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1220,12 +1445,15 @@ internal object FnInCollection73 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection74 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__SEXP_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", SEXP), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", SEXP), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1236,12 +1464,15 @@ internal object FnInCollection74 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection75 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__STRUCT_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRUCT), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", STRUCT), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1252,12 +1483,15 @@ internal object FnInCollection75 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection76 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__STRUCT_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRUCT), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", STRUCT), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1268,12 +1502,15 @@ internal object FnInCollection76 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection77 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__STRUCT_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRUCT), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", STRUCT), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1284,12 +1521,15 @@ internal object FnInCollection77 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection78 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__NULL_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", NULL), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", NULL), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1300,12 +1540,15 @@ internal object FnInCollection78 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection79 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__NULL_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", NULL), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", NULL), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1316,12 +1559,15 @@ internal object FnInCollection79 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection80 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__NULL_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", NULL), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", NULL), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) @@ -1332,12 +1578,15 @@ internal object FnInCollection80 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection81 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__MISSING_BAG__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", MISSING), FunctionParameter("collection", BAG)), + parameters = listOf( + FunctionParameter("value", MISSING), + FunctionParameter("collection", BAG), + ), isNullCall = true, isNullable = false, ) @@ -1348,12 +1597,15 @@ internal object FnInCollection81 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection82 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__MISSING_LIST__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", MISSING), FunctionParameter("collection", LIST)), + parameters = listOf( + FunctionParameter("value", MISSING), + FunctionParameter("collection", LIST), + ), isNullCall = true, isNullable = false, ) @@ -1364,12 +1616,15 @@ internal object FnInCollection82 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnInCollection83 : PartiQLFunction.Scalar { +internal object Fn_IN_COLLECTION__MISSING_SEXP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "in_collection", returns = BOOL, - parameters = listOf(FunctionParameter("value", MISSING), FunctionParameter("collection", SEXP)), + parameters = listOf( + FunctionParameter("value", MISSING), + FunctionParameter("collection", SEXP), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsAny.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsAny.kt index ca8b780314..2a07631963 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsAny.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsAny.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsAny : PartiQLFunction.Scalar { +internal object Fn_IS_ANY__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_any", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBag.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBag.kt index a1b08a758d..ff1052b600 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBag.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBag.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsBag : PartiQLFunction.Scalar { +internal object Fn_IS_BAG__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_bag", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBinary.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBinary.kt index fd57bc532c..684268771a 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBinary.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBinary.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsBinary : PartiQLFunction.Scalar { +internal object Fn_IS_BINARY__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_binary", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBlob.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBlob.kt index 38fea7bcf2..eb27a781af 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBlob.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBlob.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsBlob : PartiQLFunction.Scalar { +internal object Fn_IS_BLOB__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_blob", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBool.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBool.kt index 3a523715ff..40bfb076fe 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBool.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsBool.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsBool : PartiQLFunction.Scalar { +internal object Fn_IS_BOOL__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_bool", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsByte.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsByte.kt index 4efd130f2e..8f2b369e6a 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsByte.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsByte.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsByte : PartiQLFunction.Scalar { +internal object Fn_IS_BYTE__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_byte", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsChar.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsChar.kt index 9a44dba8e4..af0c6cbcc5 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsChar.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsChar.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsChar0 : PartiQLFunction.Scalar { +internal object Fn_IS_CHAR__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_char", @@ -27,12 +30,15 @@ internal object FnIsChar0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsChar1 : PartiQLFunction.Scalar { +internal object Fn_IS_CHAR__INT32_ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_char", returns = BOOL, - parameters = listOf(FunctionParameter("type_parameter_1", INT32), FunctionParameter("value", ANY)), + parameters = listOf( + FunctionParameter("type_parameter_1", INT32), + FunctionParameter("value", ANY), + ), isNullCall = false, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsClob.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsClob.kt index ba0c69bd0c..888b6364c8 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsClob.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsClob.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsClob : PartiQLFunction.Scalar { +internal object Fn_IS_CLOB__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_clob", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDate.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDate.kt index b2a056f817..565d852397 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDate.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDate.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsDate : PartiQLFunction.Scalar { +internal object Fn_IS_DATE__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_date", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimal.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimal.kt index 4559f3bfb4..b237b04db8 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimal.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimal.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsDecimal0 : PartiQLFunction.Scalar { +internal object Fn_IS_DECIMAL__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_decimal", @@ -27,7 +30,7 @@ internal object FnIsDecimal0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsDecimal1 : PartiQLFunction.Scalar { +internal object Fn_IS_DECIMAL__INT32_INT32_ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_decimal", @@ -35,7 +38,7 @@ internal object FnIsDecimal1 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("type_parameter_1", INT32), FunctionParameter("type_parameter_2", INT32), - FunctionParameter("value", ANY) + FunctionParameter("value", ANY), ), isNullCall = false, isNullable = false, diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimalArbitrary.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimalArbitrary.kt index f8fee40849..7b19951dc2 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimalArbitrary.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsDecimalArbitrary.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsDecimalArbitrary : PartiQLFunction.Scalar { +internal object Fn_IS_DECIMAL_ARBITRARY__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_decimal_arbitrary", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat32.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat32.kt index 27c1c123bd..3d6600435b 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat32.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat32.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsFloat32 : PartiQLFunction.Scalar { +internal object Fn_IS_FLOAT32__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_float32", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat64.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat64.kt index 584b1cd65c..541dca83c9 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat64.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsFloat64.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsFloat64 : PartiQLFunction.Scalar { +internal object Fn_IS_FLOAT64__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_float64", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt.kt index 7fb5151e21..296e823542 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsInt : PartiQLFunction.Scalar { +internal object Fn_IS_INT__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_int", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt16.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt16.kt index 888f631547..1bea92dba4 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt16.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt16.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsInt16 : PartiQLFunction.Scalar { +internal object Fn_IS_INT16__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_int16", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt32.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt32.kt index 910d5c50e4..78046ea848 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt32.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt32.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsInt32 : PartiQLFunction.Scalar { +internal object Fn_IS_INT32__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_int32", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt64.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt64.kt index b76f3c3b92..bf5c7953ce 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt64.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt64.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsInt64 : PartiQLFunction.Scalar { +internal object Fn_IS_INT64__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_int64", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt8.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt8.kt index 2610b5078a..d6e46bd3ef 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt8.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInt8.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsInt8 : PartiQLFunction.Scalar { +internal object Fn_IS_INT8__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_int8", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInterval.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInterval.kt index d177d08743..9363632db7 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInterval.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsInterval.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsInterval : PartiQLFunction.Scalar { +internal object Fn_IS_INTERVAL__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_interval", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsList.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsList.kt index df607e49b9..98c69a8389 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsList.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsList.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsList : PartiQLFunction.Scalar { +internal object Fn_IS_LIST__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_list", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsMissing.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsMissing.kt index 144362f26b..e74b936569 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsMissing.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsMissing.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsMissing : PartiQLFunction.Scalar { +internal object Fn_IS_MISSING__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_missing", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsNull.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsNull.kt index 8c8dada8fe..2d9b8d09be 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsNull.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsNull.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsNull : PartiQLFunction.Scalar { +internal object Fn_IS_NULL__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_null", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSexp.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSexp.kt index d7d2ab683e..d825a67edd 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSexp.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSexp.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsSexp : PartiQLFunction.Scalar { +internal object Fn_IS_SEXP__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_sexp", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsString.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsString.kt index e1b81c75e7..37faee57fe 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsString.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsString.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsString0 : PartiQLFunction.Scalar { +internal object Fn_IS_STRING__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_string", @@ -27,12 +30,15 @@ internal object FnIsString0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsString1 : PartiQLFunction.Scalar { +internal object Fn_IS_STRING__INT32_ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_string", returns = BOOL, - parameters = listOf(FunctionParameter("type_parameter_1", INT32), FunctionParameter("value", ANY)), + parameters = listOf( + FunctionParameter("type_parameter_1", INT32), + FunctionParameter("value", ANY), + ), isNullCall = false, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsStruct.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsStruct.kt index 885a34e1d8..0dac33b412 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsStruct.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsStruct.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsStruct : PartiQLFunction.Scalar { +internal object Fn_IS_STRUCT__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_struct", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSymbol.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSymbol.kt index b404b614fa..badb7e7a8d 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSymbol.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsSymbol.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.ANY import org.partiql.value.PartiQLValueType.BOOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsSymbol : PartiQLFunction.Scalar { +internal object Fn_IS_SYMBOL__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_symbol", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTime.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTime.kt index 613e81cca2..9d6fb2d2a1 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTime.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTime.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsTime0 : PartiQLFunction.Scalar { +internal object Fn_IS_TIME__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_time", @@ -27,7 +30,7 @@ internal object FnIsTime0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsTime1 : PartiQLFunction.Scalar { +internal object Fn_IS_TIME__BOOL_INT32_ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_time", @@ -35,7 +38,7 @@ internal object FnIsTime1 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("type_parameter_1", BOOL), FunctionParameter("type_parameter_2", INT32), - FunctionParameter("value", ANY) + FunctionParameter("value", ANY), ), isNullCall = false, isNullable = false, diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTimestamp.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTimestamp.kt index b67987ba1b..54850817d4 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTimestamp.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnIsTimestamp.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.INT32 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsTimestamp0 : PartiQLFunction.Scalar { +internal object Fn_IS_TIMESTAMP__ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_timestamp", @@ -27,7 +30,7 @@ internal object FnIsTimestamp0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnIsTimestamp1 : PartiQLFunction.Scalar { +internal object Fn_IS_TIMESTAMP__BOOL_INT32_ANY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "is_timestamp", @@ -35,7 +38,7 @@ internal object FnIsTimestamp1 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("type_parameter_1", BOOL), FunctionParameter("type_parameter_2", INT32), - FunctionParameter("value", ANY) + FunctionParameter("value", ANY), ), isNullCall = false, isNullable = false, diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLike.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLike.kt index 47756ff8d2..2a5d7dd9bf 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLike.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLike.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLike0 : PartiQLFunction.Scalar { +internal object Fn_LIKE__STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "like", returns = BOOL, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("pattern", STRING)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("pattern", STRING), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnLike0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLike1 : PartiQLFunction.Scalar { +internal object Fn_LIKE__SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "like", returns = BOOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("pattern", SYMBOL)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("pattern", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnLike1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLike2 : PartiQLFunction.Scalar { +internal object Fn_LIKE__CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "like", returns = BOOL, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("pattern", CLOB)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("pattern", CLOB), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLikeEscape.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLikeEscape.kt index d08a8c49cb..a20e0f66da 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLikeEscape.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLikeEscape.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,7 +15,7 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLikeEscape0 : PartiQLFunction.Scalar { +internal object Fn_LIKE_ESCAPE__STRING_STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "like_escape", @@ -20,7 +23,7 @@ internal object FnLikeEscape0 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", STRING), FunctionParameter("pattern", STRING), - FunctionParameter("escape", STRING) + FunctionParameter("escape", STRING), ), isNullCall = true, isNullable = false, @@ -32,7 +35,7 @@ internal object FnLikeEscape0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLikeEscape1 : PartiQLFunction.Scalar { +internal object Fn_LIKE_ESCAPE__SYMBOL_SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "like_escape", @@ -40,7 +43,7 @@ internal object FnLikeEscape1 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", SYMBOL), FunctionParameter("pattern", SYMBOL), - FunctionParameter("escape", SYMBOL) + FunctionParameter("escape", SYMBOL), ), isNullCall = true, isNullable = false, @@ -52,7 +55,7 @@ internal object FnLikeEscape1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLikeEscape2 : PartiQLFunction.Scalar { +internal object Fn_LIKE_ESCAPE__CLOB_CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "like_escape", @@ -60,7 +63,7 @@ internal object FnLikeEscape2 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", CLOB), FunctionParameter("pattern", CLOB), - FunctionParameter("escape", CLOB) + FunctionParameter("escape", CLOB), ), isNullCall = true, isNullable = false, diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLower.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLower.kt index 3b87efb73f..e80e453bbd 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLower.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLower.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLower0 : PartiQLFunction.Scalar { +internal object Fn_LOWER__STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lower", @@ -27,7 +30,7 @@ internal object FnLower0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLower1 : PartiQLFunction.Scalar { +internal object Fn_LOWER__SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lower", @@ -43,7 +46,7 @@ internal object FnLower1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLower2 : PartiQLFunction.Scalar { +internal object Fn_LOWER__CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lower", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLt.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLt.kt index 59980e68fa..325f511dd5 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLt.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLt.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -23,12 +26,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt0 : PartiQLFunction.Scalar { +internal object Fn_LT__INT8_INT8__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -39,12 +45,15 @@ internal object FnLt0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt1 : PartiQLFunction.Scalar { +internal object Fn_LT__INT16_INT16__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -55,12 +64,15 @@ internal object FnLt1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt2 : PartiQLFunction.Scalar { +internal object Fn_LT__INT32_INT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -71,12 +83,15 @@ internal object FnLt2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt3 : PartiQLFunction.Scalar { +internal object Fn_LT__INT64_INT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -87,12 +102,15 @@ internal object FnLt3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt4 : PartiQLFunction.Scalar { +internal object Fn_LT__INT_INT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -103,12 +121,15 @@ internal object FnLt4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt5 : PartiQLFunction.Scalar { +internal object Fn_LT__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -119,12 +140,15 @@ internal object FnLt5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt6 : PartiQLFunction.Scalar { +internal object Fn_LT__FLOAT32_FLOAT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -135,12 +159,15 @@ internal object FnLt6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt7 : PartiQLFunction.Scalar { +internal object Fn_LT__FLOAT64_FLOAT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) @@ -151,12 +178,15 @@ internal object FnLt7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt8 : PartiQLFunction.Scalar { +internal object Fn_LT__STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", STRING), FunctionParameter("rhs", STRING)), + parameters = listOf( + FunctionParameter("lhs", STRING), + FunctionParameter("rhs", STRING), + ), isNullCall = true, isNullable = false, ) @@ -167,12 +197,15 @@ internal object FnLt8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt9 : PartiQLFunction.Scalar { +internal object Fn_LT__SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", SYMBOL), FunctionParameter("rhs", SYMBOL)), + parameters = listOf( + FunctionParameter("lhs", SYMBOL), + FunctionParameter("rhs", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -183,12 +216,15 @@ internal object FnLt9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt10 : PartiQLFunction.Scalar { +internal object Fn_LT__CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", CLOB), FunctionParameter("rhs", CLOB)), + parameters = listOf( + FunctionParameter("lhs", CLOB), + FunctionParameter("rhs", CLOB), + ), isNullCall = true, isNullable = false, ) @@ -199,12 +235,15 @@ internal object FnLt10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt11 : PartiQLFunction.Scalar { +internal object Fn_LT__DATE_DATE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DATE), FunctionParameter("rhs", DATE)), + parameters = listOf( + FunctionParameter("lhs", DATE), + FunctionParameter("rhs", DATE), + ), isNullCall = true, isNullable = false, ) @@ -215,12 +254,15 @@ internal object FnLt11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt12 : PartiQLFunction.Scalar { +internal object Fn_LT__TIME_TIME__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIME), FunctionParameter("rhs", TIME)), + parameters = listOf( + FunctionParameter("lhs", TIME), + FunctionParameter("rhs", TIME), + ), isNullCall = true, isNullable = false, ) @@ -231,12 +273,15 @@ internal object FnLt12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt13 : PartiQLFunction.Scalar { +internal object Fn_LT__TIMESTAMP_TIMESTAMP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIMESTAMP), FunctionParameter("rhs", TIMESTAMP)), + parameters = listOf( + FunctionParameter("lhs", TIMESTAMP), + FunctionParameter("rhs", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -247,12 +292,15 @@ internal object FnLt13 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLt14 : PartiQLFunction.Scalar { +internal object Fn_LT__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lt", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLte.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLte.kt index ba9ffba601..53277cb21a 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLte.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnLte.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -23,12 +26,15 @@ import org.partiql.value.PartiQLValueType.TIME import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte0 : PartiQLFunction.Scalar { +internal object Fn_LTE__INT8_INT8__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -39,12 +45,15 @@ internal object FnLte0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte1 : PartiQLFunction.Scalar { +internal object Fn_LTE__INT16_INT16__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -55,12 +64,15 @@ internal object FnLte1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte2 : PartiQLFunction.Scalar { +internal object Fn_LTE__INT32_INT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -71,12 +83,15 @@ internal object FnLte2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte3 : PartiQLFunction.Scalar { +internal object Fn_LTE__INT64_INT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -87,12 +102,15 @@ internal object FnLte3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte4 : PartiQLFunction.Scalar { +internal object Fn_LTE__INT_INT__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -103,12 +121,15 @@ internal object FnLte4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte5 : PartiQLFunction.Scalar { +internal object Fn_LTE__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -119,12 +140,15 @@ internal object FnLte5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte6 : PartiQLFunction.Scalar { +internal object Fn_LTE__FLOAT32_FLOAT32__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -135,12 +159,15 @@ internal object FnLte6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte7 : PartiQLFunction.Scalar { +internal object Fn_LTE__FLOAT64_FLOAT64__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) @@ -151,12 +178,15 @@ internal object FnLte7 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte8 : PartiQLFunction.Scalar { +internal object Fn_LTE__STRING_STRING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", STRING), FunctionParameter("rhs", STRING)), + parameters = listOf( + FunctionParameter("lhs", STRING), + FunctionParameter("rhs", STRING), + ), isNullCall = true, isNullable = false, ) @@ -167,12 +197,15 @@ internal object FnLte8 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte9 : PartiQLFunction.Scalar { +internal object Fn_LTE__SYMBOL_SYMBOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", SYMBOL), FunctionParameter("rhs", SYMBOL)), + parameters = listOf( + FunctionParameter("lhs", SYMBOL), + FunctionParameter("rhs", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -183,12 +216,15 @@ internal object FnLte9 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte10 : PartiQLFunction.Scalar { +internal object Fn_LTE__CLOB_CLOB__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", CLOB), FunctionParameter("rhs", CLOB)), + parameters = listOf( + FunctionParameter("lhs", CLOB), + FunctionParameter("rhs", CLOB), + ), isNullCall = true, isNullable = false, ) @@ -199,12 +235,15 @@ internal object FnLte10 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte11 : PartiQLFunction.Scalar { +internal object Fn_LTE__DATE_DATE__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", DATE), FunctionParameter("rhs", DATE)), + parameters = listOf( + FunctionParameter("lhs", DATE), + FunctionParameter("rhs", DATE), + ), isNullCall = true, isNullable = false, ) @@ -215,12 +254,15 @@ internal object FnLte11 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte12 : PartiQLFunction.Scalar { +internal object Fn_LTE__TIME_TIME__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIME), FunctionParameter("rhs", TIME)), + parameters = listOf( + FunctionParameter("lhs", TIME), + FunctionParameter("rhs", TIME), + ), isNullCall = true, isNullable = false, ) @@ -231,12 +273,15 @@ internal object FnLte12 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte13 : PartiQLFunction.Scalar { +internal object Fn_LTE__TIMESTAMP_TIMESTAMP__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", TIMESTAMP), FunctionParameter("rhs", TIMESTAMP)), + parameters = listOf( + FunctionParameter("lhs", TIMESTAMP), + FunctionParameter("rhs", TIMESTAMP), + ), isNullCall = true, isNullable = false, ) @@ -247,12 +292,15 @@ internal object FnLte13 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnLte14 : PartiQLFunction.Scalar { +internal object Fn_LTE__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "lte", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnMinus.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnMinus.kt index 4d9c465d5a..497f207ad2 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnMinus.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnMinus.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,12 +19,15 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus0 : PartiQLFunction.Scalar { +internal object Fn_MINUS__INT8_INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = INT8, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -32,12 +38,15 @@ internal object FnMinus0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus1 : PartiQLFunction.Scalar { +internal object Fn_MINUS__INT16_INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = INT16, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -48,12 +57,15 @@ internal object FnMinus1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus2 : PartiQLFunction.Scalar { +internal object Fn_MINUS__INT32_INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = INT32, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -64,12 +76,15 @@ internal object FnMinus2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus3 : PartiQLFunction.Scalar { +internal object Fn_MINUS__INT64_INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = INT64, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -80,12 +95,15 @@ internal object FnMinus3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus4 : PartiQLFunction.Scalar { +internal object Fn_MINUS__INT_INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = INT, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -96,12 +114,15 @@ internal object FnMinus4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus5 : PartiQLFunction.Scalar { +internal object Fn_MINUS__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = DECIMAL_ARBITRARY, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -112,12 +133,15 @@ internal object FnMinus5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus6 : PartiQLFunction.Scalar { +internal object Fn_MINUS__FLOAT32_FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = FLOAT32, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -128,12 +152,15 @@ internal object FnMinus6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnMinus7 : PartiQLFunction.Scalar { +internal object Fn_MINUS__FLOAT64_FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "minus", returns = FLOAT64, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnModulo.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnModulo.kt index eab10f7cd4..b4ff8aa139 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnModulo.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnModulo.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,12 +19,15 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo0 : PartiQLFunction.Scalar { +internal object Fn_MODULO__INT8_INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = INT8, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -32,12 +38,15 @@ internal object FnModulo0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo1 : PartiQLFunction.Scalar { +internal object Fn_MODULO__INT16_INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = INT16, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -48,12 +57,15 @@ internal object FnModulo1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo2 : PartiQLFunction.Scalar { +internal object Fn_MODULO__INT32_INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = INT32, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -64,12 +76,15 @@ internal object FnModulo2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo3 : PartiQLFunction.Scalar { +internal object Fn_MODULO__INT64_INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = INT64, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -80,12 +95,15 @@ internal object FnModulo3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo4 : PartiQLFunction.Scalar { +internal object Fn_MODULO__INT_INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = INT, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -96,12 +114,15 @@ internal object FnModulo4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo5 : PartiQLFunction.Scalar { +internal object Fn_MODULO__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = DECIMAL_ARBITRARY, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -112,12 +133,15 @@ internal object FnModulo5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo6 : PartiQLFunction.Scalar { +internal object Fn_MODULO__FLOAT32_FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = FLOAT32, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -128,12 +152,15 @@ internal object FnModulo6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnModulo7 : PartiQLFunction.Scalar { +internal object Fn_MODULO__FLOAT64_FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "modulo", returns = FLOAT64, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNeg.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNeg.kt index 2cd4be0df9..ae072fabde 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNeg.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNeg.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,7 +19,7 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg0 : PartiQLFunction.Scalar { +internal object Fn_NEG__INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -32,7 +35,7 @@ internal object FnNeg0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg1 : PartiQLFunction.Scalar { +internal object Fn_NEG__INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -48,7 +51,7 @@ internal object FnNeg1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg2 : PartiQLFunction.Scalar { +internal object Fn_NEG__INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -64,7 +67,7 @@ internal object FnNeg2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg3 : PartiQLFunction.Scalar { +internal object Fn_NEG__INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -80,7 +83,7 @@ internal object FnNeg3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg4 : PartiQLFunction.Scalar { +internal object Fn_NEG__INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -96,7 +99,7 @@ internal object FnNeg4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg5 : PartiQLFunction.Scalar { +internal object Fn_NEG__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -112,7 +115,7 @@ internal object FnNeg5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg6 : PartiQLFunction.Scalar { +internal object Fn_NEG__FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", @@ -128,7 +131,7 @@ internal object FnNeg6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNeg7 : PartiQLFunction.Scalar { +internal object Fn_NEG__FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "neg", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNot.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNot.kt index a58e5d8496..7ae8b1d919 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNot.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnNot.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,7 +13,7 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.MISSING @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNot0 : PartiQLFunction.Scalar { +internal object Fn_NOT__BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "not", @@ -26,7 +29,7 @@ internal object FnNot0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnNot1 : PartiQLFunction.Scalar { +internal object Fn_NOT__MISSING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "not", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnOr.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnOr.kt index 0d117720e6..08aaa72c39 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnOr.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnOr.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -10,12 +13,15 @@ import org.partiql.value.PartiQLValueType.BOOL import org.partiql.value.PartiQLValueType.MISSING @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnOr0 : PartiQLFunction.Scalar { +internal object Fn_OR__BOOL_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "or", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", BOOL), + ), isNullCall = false, isNullable = true, ) @@ -26,12 +32,15 @@ internal object FnOr0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnOr1 : PartiQLFunction.Scalar { +internal object Fn_OR__MISSING_BOOL__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "or", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", MISSING), FunctionParameter("rhs", BOOL)), + parameters = listOf( + FunctionParameter("lhs", MISSING), + FunctionParameter("rhs", BOOL), + ), isNullCall = false, isNullable = true, ) @@ -42,12 +51,15 @@ internal object FnOr1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnOr2 : PartiQLFunction.Scalar { +internal object Fn_OR__BOOL_MISSING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "or", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", BOOL), FunctionParameter("rhs", MISSING)), + parameters = listOf( + FunctionParameter("lhs", BOOL), + FunctionParameter("rhs", MISSING), + ), isNullCall = false, isNullable = true, ) @@ -58,12 +70,15 @@ internal object FnOr2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnOr3 : PartiQLFunction.Scalar { +internal object Fn_OR__MISSING_MISSING__BOOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "or", returns = BOOL, - parameters = listOf(FunctionParameter("lhs", MISSING), FunctionParameter("rhs", MISSING)), + parameters = listOf( + FunctionParameter("lhs", MISSING), + FunctionParameter("rhs", MISSING), + ), isNullCall = false, isNullable = true, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPlus.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPlus.kt index 0f1f8e18dd..bd2dc156da 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPlus.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPlus.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,12 +19,15 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus0 : PartiQLFunction.Scalar { +internal object Fn_PLUS__INT8_INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = INT8, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -32,12 +38,15 @@ internal object FnPlus0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus1 : PartiQLFunction.Scalar { +internal object Fn_PLUS__INT16_INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = INT16, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -48,12 +57,15 @@ internal object FnPlus1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus2 : PartiQLFunction.Scalar { +internal object Fn_PLUS__INT32_INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = INT32, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -64,12 +76,15 @@ internal object FnPlus2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus3 : PartiQLFunction.Scalar { +internal object Fn_PLUS__INT64_INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = INT64, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -80,12 +95,15 @@ internal object FnPlus3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus4 : PartiQLFunction.Scalar { +internal object Fn_PLUS__INT_INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = INT, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -96,12 +114,15 @@ internal object FnPlus4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus5 : PartiQLFunction.Scalar { +internal object Fn_PLUS__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = DECIMAL_ARBITRARY, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -112,12 +133,15 @@ internal object FnPlus5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus6 : PartiQLFunction.Scalar { +internal object Fn_PLUS__FLOAT32_FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = FLOAT32, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -128,12 +152,15 @@ internal object FnPlus6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPlus7 : PartiQLFunction.Scalar { +internal object Fn_PLUS__FLOAT64_FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "plus", returns = FLOAT64, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPos.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPos.kt index b766bf5448..df0df54663 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPos.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPos.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,7 +19,7 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos0 : PartiQLFunction.Scalar { +internal object Fn_POS__INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -32,7 +35,7 @@ internal object FnPos0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos1 : PartiQLFunction.Scalar { +internal object Fn_POS__INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -48,7 +51,7 @@ internal object FnPos1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos2 : PartiQLFunction.Scalar { +internal object Fn_POS__INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -64,7 +67,7 @@ internal object FnPos2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos3 : PartiQLFunction.Scalar { +internal object Fn_POS__INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -80,7 +83,7 @@ internal object FnPos3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos4 : PartiQLFunction.Scalar { +internal object Fn_POS__INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -96,7 +99,7 @@ internal object FnPos4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos5 : PartiQLFunction.Scalar { +internal object Fn_POS__DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -112,7 +115,7 @@ internal object FnPos5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos6 : PartiQLFunction.Scalar { +internal object Fn_POS__FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", @@ -128,7 +131,7 @@ internal object FnPos6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPos7 : PartiQLFunction.Scalar { +internal object Fn_POS__FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "pos", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPosition.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPosition.kt index ac0ef3e97d..39cac3396c 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPosition.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnPosition.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPosition0 : PartiQLFunction.Scalar { +internal object Fn_POSITION__STRING_STRING__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "position", returns = INT64, - parameters = listOf(FunctionParameter("probe", STRING), FunctionParameter("value", STRING)), + parameters = listOf( + FunctionParameter("probe", STRING), + FunctionParameter("value", STRING), + ), isNullCall = true, isNullable = false, ) @@ -28,12 +34,15 @@ internal object FnPosition0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPosition1 : PartiQLFunction.Scalar { +internal object Fn_POSITION__SYMBOL_SYMBOL__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "position", returns = INT64, - parameters = listOf(FunctionParameter("probe", SYMBOL), FunctionParameter("value", SYMBOL)), + parameters = listOf( + FunctionParameter("probe", SYMBOL), + FunctionParameter("value", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -44,12 +53,15 @@ internal object FnPosition1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnPosition2 : PartiQLFunction.Scalar { +internal object Fn_POSITION__CLOB_CLOB__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "position", returns = INT64, - parameters = listOf(FunctionParameter("probe", CLOB), FunctionParameter("value", CLOB)), + parameters = listOf( + FunctionParameter("probe", CLOB), + FunctionParameter("value", CLOB), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnSubstring.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnSubstring.kt index 4138d3a9e0..1d0a50a72d 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnSubstring.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnSubstring.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -12,12 +15,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnSubstring0 : PartiQLFunction.Scalar { +internal object Fn_SUBSTRING__STRING_INT64__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "substring", returns = STRING, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("start", INT64)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("start", INT64), + ), isNullCall = true, isNullable = false, ) @@ -28,7 +34,7 @@ internal object FnSubstring0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnSubstring1 : PartiQLFunction.Scalar { +internal object Fn_SUBSTRING__STRING_INT64_INT64__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "substring", @@ -36,7 +42,7 @@ internal object FnSubstring1 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", STRING), FunctionParameter("start", INT64), - FunctionParameter("end", INT64) + FunctionParameter("end", INT64), ), isNullCall = true, isNullable = false, @@ -48,12 +54,15 @@ internal object FnSubstring1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnSubstring2 : PartiQLFunction.Scalar { +internal object Fn_SUBSTRING__SYMBOL_INT64__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "substring", returns = SYMBOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("start", INT64)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("start", INT64), + ), isNullCall = true, isNullable = false, ) @@ -64,7 +73,7 @@ internal object FnSubstring2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnSubstring3 : PartiQLFunction.Scalar { +internal object Fn_SUBSTRING__SYMBOL_INT64_INT64__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "substring", @@ -72,7 +81,7 @@ internal object FnSubstring3 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", SYMBOL), FunctionParameter("start", INT64), - FunctionParameter("end", INT64) + FunctionParameter("end", INT64), ), isNullCall = true, isNullable = false, @@ -84,12 +93,15 @@ internal object FnSubstring3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnSubstring4 : PartiQLFunction.Scalar { +internal object Fn_SUBSTRING__CLOB_INT64__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "substring", returns = CLOB, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("start", INT64)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("start", INT64), + ), isNullCall = true, isNullable = false, ) @@ -100,7 +112,7 @@ internal object FnSubstring4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnSubstring5 : PartiQLFunction.Scalar { +internal object Fn_SUBSTRING__CLOB_INT64_INT64__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "substring", @@ -108,7 +120,7 @@ internal object FnSubstring5 : PartiQLFunction.Scalar { parameters = listOf( FunctionParameter("value", CLOB), FunctionParameter("start", INT64), - FunctionParameter("end", INT64) + FunctionParameter("end", INT64), ), isNullCall = true, isNullable = false, diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTimes.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTimes.kt index 9365606a73..589e98fb11 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTimes.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTimes.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -16,12 +19,15 @@ import org.partiql.value.PartiQLValueType.INT64 import org.partiql.value.PartiQLValueType.INT8 @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes0 : PartiQLFunction.Scalar { +internal object Fn_TIMES__INT8_INT8__INT8 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = INT8, - parameters = listOf(FunctionParameter("lhs", INT8), FunctionParameter("rhs", INT8)), + parameters = listOf( + FunctionParameter("lhs", INT8), + FunctionParameter("rhs", INT8), + ), isNullCall = true, isNullable = false, ) @@ -32,12 +38,15 @@ internal object FnTimes0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes1 : PartiQLFunction.Scalar { +internal object Fn_TIMES__INT16_INT16__INT16 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = INT16, - parameters = listOf(FunctionParameter("lhs", INT16), FunctionParameter("rhs", INT16)), + parameters = listOf( + FunctionParameter("lhs", INT16), + FunctionParameter("rhs", INT16), + ), isNullCall = true, isNullable = false, ) @@ -48,12 +57,15 @@ internal object FnTimes1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes2 : PartiQLFunction.Scalar { +internal object Fn_TIMES__INT32_INT32__INT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = INT32, - parameters = listOf(FunctionParameter("lhs", INT32), FunctionParameter("rhs", INT32)), + parameters = listOf( + FunctionParameter("lhs", INT32), + FunctionParameter("rhs", INT32), + ), isNullCall = true, isNullable = false, ) @@ -64,12 +76,15 @@ internal object FnTimes2 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes3 : PartiQLFunction.Scalar { +internal object Fn_TIMES__INT64_INT64__INT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = INT64, - parameters = listOf(FunctionParameter("lhs", INT64), FunctionParameter("rhs", INT64)), + parameters = listOf( + FunctionParameter("lhs", INT64), + FunctionParameter("rhs", INT64), + ), isNullCall = true, isNullable = false, ) @@ -80,12 +95,15 @@ internal object FnTimes3 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes4 : PartiQLFunction.Scalar { +internal object Fn_TIMES__INT_INT__INT : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = INT, - parameters = listOf(FunctionParameter("lhs", INT), FunctionParameter("rhs", INT)), + parameters = listOf( + FunctionParameter("lhs", INT), + FunctionParameter("rhs", INT), + ), isNullCall = true, isNullable = false, ) @@ -96,12 +114,15 @@ internal object FnTimes4 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes5 : PartiQLFunction.Scalar { +internal object Fn_TIMES__DECIMAL_ARBITRARY_DECIMAL_ARBITRARY__DECIMAL_ARBITRARY : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = DECIMAL_ARBITRARY, - parameters = listOf(FunctionParameter("lhs", DECIMAL_ARBITRARY), FunctionParameter("rhs", DECIMAL_ARBITRARY)), + parameters = listOf( + FunctionParameter("lhs", DECIMAL_ARBITRARY), + FunctionParameter("rhs", DECIMAL_ARBITRARY), + ), isNullCall = true, isNullable = false, ) @@ -112,12 +133,15 @@ internal object FnTimes5 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes6 : PartiQLFunction.Scalar { +internal object Fn_TIMES__FLOAT32_FLOAT32__FLOAT32 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = FLOAT32, - parameters = listOf(FunctionParameter("lhs", FLOAT32), FunctionParameter("rhs", FLOAT32)), + parameters = listOf( + FunctionParameter("lhs", FLOAT32), + FunctionParameter("rhs", FLOAT32), + ), isNullCall = true, isNullable = false, ) @@ -128,12 +152,15 @@ internal object FnTimes6 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTimes7 : PartiQLFunction.Scalar { +internal object Fn_TIMES__FLOAT64_FLOAT64__FLOAT64 : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "times", returns = FLOAT64, - parameters = listOf(FunctionParameter("lhs", FLOAT64), FunctionParameter("rhs", FLOAT64)), + parameters = listOf( + FunctionParameter("lhs", FLOAT64), + FunctionParameter("rhs", FLOAT64), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrim.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrim.kt index 76973299a4..071db8032c 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrim.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrim.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrim0 : PartiQLFunction.Scalar { +internal object Fn_TRIM__STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim", @@ -27,7 +30,7 @@ internal object FnTrim0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrim1 : PartiQLFunction.Scalar { +internal object Fn_TRIM__SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim", @@ -43,7 +46,7 @@ internal object FnTrim1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrim2 : PartiQLFunction.Scalar { +internal object Fn_TRIM__CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimChars.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimChars.kt index 686831f064..9104aebc07 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimChars.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimChars.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,12 +14,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimChars0 : PartiQLFunction.Scalar { +internal object Fn_TRIM_CHARS__STRING_STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_chars", returns = STRING, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("chars", STRING)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("chars", STRING), + ), isNullCall = true, isNullable = false, ) @@ -27,12 +33,15 @@ internal object FnTrimChars0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimChars1 : PartiQLFunction.Scalar { +internal object Fn_TRIM_CHARS__SYMBOL_SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_chars", returns = SYMBOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("chars", SYMBOL)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("chars", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -43,12 +52,15 @@ internal object FnTrimChars1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimChars2 : PartiQLFunction.Scalar { +internal object Fn_TRIM_CHARS__CLOB_CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_chars", returns = CLOB, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("chars", CLOB)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("chars", CLOB), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeading.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeading.kt index 180aa8a992..1581072ea3 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeading.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeading.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimLeading0 : PartiQLFunction.Scalar { +internal object Fn_TRIM_LEADING__STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_leading", @@ -27,7 +30,7 @@ internal object FnTrimLeading0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimLeading1 : PartiQLFunction.Scalar { +internal object Fn_TRIM_LEADING__SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_leading", @@ -43,7 +46,7 @@ internal object FnTrimLeading1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimLeading2 : PartiQLFunction.Scalar { +internal object Fn_TRIM_LEADING__CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_leading", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeadingChars.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeadingChars.kt index d2fdd09fd4..7c95ff19a3 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeadingChars.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimLeadingChars.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,12 +14,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimLeadingChars0 : PartiQLFunction.Scalar { +internal object Fn_TRIM_LEADING_CHARS__STRING_STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_leading_chars", returns = STRING, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("chars", STRING)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("chars", STRING), + ), isNullCall = true, isNullable = false, ) @@ -27,12 +33,15 @@ internal object FnTrimLeadingChars0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimLeadingChars1 : PartiQLFunction.Scalar { +internal object Fn_TRIM_LEADING_CHARS__SYMBOL_SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_leading_chars", returns = SYMBOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("chars", SYMBOL)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("chars", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -43,12 +52,15 @@ internal object FnTrimLeadingChars1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimLeadingChars2 : PartiQLFunction.Scalar { +internal object Fn_TRIM_LEADING_CHARS__CLOB_CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_leading_chars", returns = CLOB, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("chars", CLOB)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("chars", CLOB), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailing.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailing.kt index d93acd71f6..890352848b 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailing.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailing.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimTrailing0 : PartiQLFunction.Scalar { +internal object Fn_TRIM_TRAILING__STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_trailing", @@ -27,7 +30,7 @@ internal object FnTrimTrailing0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimTrailing1 : PartiQLFunction.Scalar { +internal object Fn_TRIM_TRAILING__SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_trailing", @@ -43,7 +46,7 @@ internal object FnTrimTrailing1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimTrailing2 : PartiQLFunction.Scalar { +internal object Fn_TRIM_TRAILING__CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_trailing", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailingChars.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailingChars.kt index 6676eae2dd..32d8e7b1bb 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailingChars.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnTrimTrailingChars.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,12 +14,15 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimTrailingChars0 : PartiQLFunction.Scalar { +internal object Fn_TRIM_TRAILING_CHARS__STRING_STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_trailing_chars", returns = STRING, - parameters = listOf(FunctionParameter("value", STRING), FunctionParameter("chars", STRING)), + parameters = listOf( + FunctionParameter("value", STRING), + FunctionParameter("chars", STRING), + ), isNullCall = true, isNullable = false, ) @@ -27,12 +33,15 @@ internal object FnTrimTrailingChars0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimTrailingChars1 : PartiQLFunction.Scalar { +internal object Fn_TRIM_TRAILING_CHARS__SYMBOL_SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_trailing_chars", returns = SYMBOL, - parameters = listOf(FunctionParameter("value", SYMBOL), FunctionParameter("chars", SYMBOL)), + parameters = listOf( + FunctionParameter("value", SYMBOL), + FunctionParameter("chars", SYMBOL), + ), isNullCall = true, isNullable = false, ) @@ -43,12 +52,15 @@ internal object FnTrimTrailingChars1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnTrimTrailingChars2 : PartiQLFunction.Scalar { +internal object Fn_TRIM_TRAILING_CHARS__CLOB_CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "trim_trailing_chars", returns = CLOB, - parameters = listOf(FunctionParameter("value", CLOB), FunctionParameter("chars", CLOB)), + parameters = listOf( + FunctionParameter("value", CLOB), + FunctionParameter("chars", CLOB), + ), isNullCall = true, isNullable = false, ) diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUpper.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUpper.kt index 9e20556a99..b3354ecd5a 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUpper.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUpper.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -11,7 +14,7 @@ import org.partiql.value.PartiQLValueType.STRING import org.partiql.value.PartiQLValueType.SYMBOL @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnUpper0 : PartiQLFunction.Scalar { +internal object Fn_UPPER__STRING__STRING : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "upper", @@ -27,7 +30,7 @@ internal object FnUpper0 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnUpper1 : PartiQLFunction.Scalar { +internal object Fn_UPPER__SYMBOL__SYMBOL : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "upper", @@ -43,7 +46,7 @@ internal object FnUpper1 : PartiQLFunction.Scalar { } @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnUpper2 : PartiQLFunction.Scalar { +internal object Fn_UPPER__CLOB__CLOB : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "upper", diff --git a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUtcnow.kt b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUtcnow.kt index c67956b133..e95bb74bf3 100644 --- a/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUtcnow.kt +++ b/plugins/partiql-plugin/src/main/kotlin/org/partiql/plugin/internal/fn/scalar/FnUtcnow.kt @@ -1,3 +1,6 @@ +// ktlint-disable filename +@file:Suppress("ClassName") + package org.partiql.plugin.internal.fn.scalar import org.partiql.spi.function.PartiQLFunction @@ -8,7 +11,7 @@ import org.partiql.value.PartiQLValueExperimental import org.partiql.value.PartiQLValueType.TIMESTAMP @OptIn(PartiQLValueExperimental::class, PartiQLFunctionExperimental::class) -internal object FnUtcnow : PartiQLFunction.Scalar { +internal object Fn_UTCNOW____TIMESTAMP : PartiQLFunction.Scalar { override val signature = FunctionSignature.Scalar( name = "utcnow", diff --git a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/Header.kt b/plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/Header.kt similarity index 90% rename from partiql-planner/src/test/kotlin/org/partiql/planner/internal/Header.kt rename to plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/Header.kt index c49d4dd95b..1290f867b4 100644 --- a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/Header.kt +++ b/plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/Header.kt @@ -1,6 +1,5 @@ -package org.partiql.planner.internal +package org.partiql.plugin -import org.partiql.planner.internal.typer.TypeCasts import org.partiql.types.function.FunctionParameter import org.partiql.types.function.FunctionSignature import org.partiql.value.PartiQLValueExperimental @@ -32,11 +31,6 @@ internal abstract class Header { */ open val aggregations: List = emptyList() - /** - * Type relationships; this is primarily a helper for defining operators. - */ - internal val types: TypeCasts = TypeCasts.partiql() - /** * Dump the Header as SQL commands * diff --git a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/HeaderTest.kt b/plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/HeaderTest.kt similarity index 78% rename from partiql-planner/src/test/kotlin/org/partiql/planner/internal/HeaderTest.kt rename to plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/HeaderTest.kt index 640c201e72..c4213914e6 100644 --- a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/HeaderTest.kt +++ b/plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/HeaderTest.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal +package org.partiql.plugin import net.pearx.kasechange.toPascalCase import org.junit.jupiter.api.Disabled @@ -76,13 +76,13 @@ class HeaderTest { @Test fun scalars() { - generate("package org.partiql.eval.internal.fn.scalar", TEMPLATE_SCALAR, "fn", PartiQLHeader.functions) - generate("package org.partiql.eval.internal.fn.scalar", TEMPLATE_SCALAR, "fn", PartiQLHeader.operators) + generate("package org.partiql.plugin.internal.fn.scalar", TEMPLATE_SCALAR, "Fn", PartiQLHeader.functions) + generate("package org.partiql.plugin.internal.fn.scalar", TEMPLATE_SCALAR, "Fn", PartiQLHeader.operators) } @Test fun aggregations() { - generate("package org.partiql.eval.internal.fn.agg", TEMPLATE_AGG, "agg", PartiQLHeader.aggregations) + generate("package org.partiql.plugin.internal.fn.agg", TEMPLATE_AGG, "Agg", PartiQLHeader.aggregations) } /** @@ -100,26 +100,20 @@ class HeaderTest { val pre = "${prefix}_$name".toPascalCase() val file = File("/Users/howero/Desktop/out/$pre.kt") file.printWriter().use { + it.appendLine("// ktlint-disable filename") + it.appendLine("@file:Suppress(\"ClassName\")") + it.appendLine() it.appendLine(packageName) it.appendLine() it.appendLine(imports) it.appendLine() - if (fns.size == 1) { - val clazz = pre - val params = toParams(clazz, fns.first()) + fns.forEach { sig -> + val clazz = "${prefix}_${sig.specific}" + val params = toParams(clazz, sig) val code = String.format(template, *params) it.appendLine(code) it.appendLine() clazzes.add(clazz) - } else { - fns.forEachIndexed { index, sig -> - val clazz = "${pre}$index" - val params = toParams(clazz, sig) - val code = String.format(template, *params) - it.appendLine(code) - it.appendLine() - clazzes.add(clazz) - } } } } @@ -138,16 +132,17 @@ class HeaderTest { val returns = fn.returns.name val parameters = fn.parameters.mapIndexed { i, p -> "FunctionParameter(\"${p.name}\", ${p.type.name})" - }.joinToString() + }.joinToString(",\n", postfix = ",") return arrayOf(clazz, snake, returns, parameters, fn.isNullCall, fn.isNullable, snake) } private fun toParams(clazz: String, fn: FunctionSignature.Aggregation): Array { val snake = fn.name val returns = fn.returns.name - val parameters = fn.parameters.mapIndexed { i, p -> - "FunctionParameter(\"${p.name}\", ${p.type.name})" - }.joinToString() + var parameters = "" + for (p in fn.parameters) { + parameters += "FunctionParameter(\"${p.name}\", ${p.type.name}),\n" + } return arrayOf(clazz, snake, returns, parameters, fn.isNullable, fn.isDecomposable, snake) } } diff --git a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/PartiQLHeader.kt b/plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/PartiQLHeader.kt similarity index 99% rename from partiql-planner/src/test/kotlin/org/partiql/planner/internal/PartiQLHeader.kt rename to plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/PartiQLHeader.kt index b35f5970de..5f2670ba15 100644 --- a/partiql-planner/src/test/kotlin/org/partiql/planner/internal/PartiQLHeader.kt +++ b/plugins/partiql-plugin/src/test/kotlin/org/partiql/plugin/PartiQLHeader.kt @@ -1,4 +1,4 @@ -package org.partiql.planner.internal +package org.partiql.plugin import org.partiql.ast.DatetimeField import org.partiql.types.function.FunctionParameter