From 9f4cb9eeee99f7c7b778409c1afc0166d30e5a7c Mon Sep 17 00:00:00 2001 From: Alan Cai Date: Mon, 22 Apr 2024 10:04:21 -0700 Subject: [PATCH] Prepare v0.6.4-SNAPSHOT; update plugin to 0.6.3 (#158) --- gradle.properties | 2 +- pig-gradle-plugin/build.gradle.kts | 2 +- .../pig/tests/generated/DomainA.generated.kt | 16 ++++++++-------- .../pig/tests/generated/DomainB.generated.kt | 12 ++++++------ .../tests/generated/MultiWordDomain.generated.kt | 12 ++++++------ .../tests/generated/PartiqlBasic.generated.kt | 6 +++--- .../pig/tests/generated/TestDomain.generated.kt | 16 ++++++++-------- 7 files changed, 33 insertions(+), 33 deletions(-) diff --git a/gradle.properties b/gradle.properties index d6c3edc..d5867d4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=org.partiql -version=0.6.3 +version=0.6.4-SNAPSHOT # Required for the maven publish plugin--these properties must be present even if they contain placeholder values. ossrhUsername=EMPTY ossrhPassword=EMPTY diff --git a/pig-gradle-plugin/build.gradle.kts b/pig-gradle-plugin/build.gradle.kts index 5f9ed1f..ba82e68 100644 --- a/pig-gradle-plugin/build.gradle.kts +++ b/pig-gradle-plugin/build.gradle.kts @@ -9,7 +9,7 @@ repositories { } object Versions { - const val pig = "0.6.2" + const val pig = "0.6.3" const val kotlinTarget = "1.4" const val javaTarget = "1.8" } diff --git a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainA.generated.kt b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainA.generated.kt index 8d1bbe0..ad5409d 100644 --- a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainA.generated.kt +++ b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainA.generated.kt @@ -501,7 +501,7 @@ class DomainA private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("record_to_remove"), - irrelevant?.let { ionSexpOf(ionSymbol("irrelevant"), it.toIonElement()) } + ionSexpOf(ionSymbol("irrelevant"), irrelevant.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -611,8 +611,8 @@ class DomainA private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("record_a"), - one?.let { ionSexpOf(ionSymbol("one"), it.toIonElement()) }, - two?.let { ionSexpOf(ionSymbol("two"), it.toIonElement()) } + ionSexpOf(ionSymbol("one"), one.toIonElement()), + ionSexpOf(ionSymbol("two"), two.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -726,8 +726,8 @@ class DomainA private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("unpermuted_record"), - foo?.let { ionSexpOf(ionSymbol("foo"), it.toIonElement()) }, - bar?.let { ionSexpOf(ionSymbol("bar"), it.toIonElement()) } + ionSexpOf(ionSymbol("foo"), foo.toIonElement()), + ionSexpOf(ionSymbol("bar"), bar.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -1020,7 +1020,7 @@ class DomainA private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("noti"), - a?.let { ionSexpOf(ionSymbol("a"), it.toIonElement()) } + ionSexpOf(ionSymbol("a"), a.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -1284,8 +1284,8 @@ class DomainA private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("unpermuted_record_variant"), - foo?.let { ionSexpOf(ionSymbol("foo"), it.toIonElement()) }, - bar?.let { ionSexpOf(ionSymbol("bar"), it.toIonElement()) } + ionSexpOf(ionSymbol("foo"), foo.toIonElement()), + ionSexpOf(ionSymbol("bar"), bar.toIonElement()) ) return ionSexpOf(elements, metas = metas) diff --git a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainB.generated.kt b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainB.generated.kt index 48a5b5c..f3d8252 100644 --- a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainB.generated.kt +++ b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/DomainB.generated.kt @@ -470,8 +470,8 @@ class DomainB private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("unpermuted_record"), - foo?.let { ionSexpOf(ionSymbol("foo"), it.toIonElement()) }, - bar?.let { ionSexpOf(ionSymbol("bar"), it.toIonElement()) } + ionSexpOf(ionSymbol("foo"), foo.toIonElement()), + ionSexpOf(ionSymbol("bar"), bar.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -574,7 +574,7 @@ class DomainB private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("record_a"), - one?.let { ionSexpOf(ionSymbol("one"), it.toIonElement()) } + ionSexpOf(ionSymbol("one"), one.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -722,7 +722,7 @@ class DomainB private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("new_record"), - foo?.let { ionSexpOf(ionSymbol("foo"), it.toIonElement()) } + ionSexpOf(ionSymbol("foo"), foo.toIonElement()) ) return ionSexpOf(elements, metas = metas) @@ -844,8 +844,8 @@ class DomainB private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("unpermuted_record_variant"), - foo?.let { ionSexpOf(ionSymbol("foo"), it.toIonElement()) }, - bar?.let { ionSexpOf(ionSymbol("bar"), it.toIonElement()) } + ionSexpOf(ionSymbol("foo"), foo.toIonElement()), + ionSexpOf(ionSymbol("bar"), bar.toIonElement()) ) return ionSexpOf(elements, metas = metas) diff --git a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/MultiWordDomain.generated.kt b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/MultiWordDomain.generated.kt index 60962f2..a4849fe 100644 --- a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/MultiWordDomain.generated.kt +++ b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/MultiWordDomain.generated.kt @@ -383,8 +383,8 @@ class MultiWordDomain private constructor() { metas: MetaContainer = emptyMetaContainer() ): MultiWordDomain.AabAad = MultiWordDomain.AabAad( - bField = bField?.asPrimitive(), - cField = cField?.asPrimitive(), + bField = bField.asPrimitive(), + cField = cField.asPrimitive(), dField = dField.map { it.asPrimitive() }, metas = newMetaContainer() + metas ) @@ -458,8 +458,8 @@ class MultiWordDomain private constructor() { metas: MetaContainer = emptyMetaContainer() ): MultiWordDomain.AabAae = MultiWordDomain.AabAae( - bField = bField?.asPrimitive(), - cField = cField?.asPrimitive(), + bField = bField.asPrimitive(), + cField = cField.asPrimitive(), dField = listOfPrimitives(dField0, dField1) + dField.map { it.asPrimitive() }, metas = newMetaContainer() + metas ) @@ -1175,8 +1175,8 @@ class MultiWordDomain private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("rrr"), - aField?.let { ionSexpOf(ionSymbol("a_field"), it.toIonElement()) }, - bbbField?.let { ionSexpOf(ionSymbol("b_field"), it.toIonElement()) } + ionSexpOf(ionSymbol("a_field"), aField.toIonElement()), + ionSexpOf(ionSymbol("b_field"), bbbField.toIonElement()) ) return ionSexpOf(elements, metas = metas) diff --git a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/PartiqlBasic.generated.kt b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/PartiqlBasic.generated.kt index c6030be..aec6022 100644 --- a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/PartiqlBasic.generated.kt +++ b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/PartiqlBasic.generated.kt @@ -799,7 +799,7 @@ class PartiqlBasic private constructor() { metas: MetaContainer = emptyMetaContainer() ): PartiqlBasic.Expr.Call = PartiqlBasic.Expr.Call( - name = name?.asPrimitive(), + name = name.asPrimitive(), args = listOf(args0) + args.toList(), metas = newMetaContainer() + metas ) @@ -3302,8 +3302,8 @@ class PartiqlBasic private constructor() { val elements = listOfNotNull( ionSymbol("select"), setq?.let { ionSexpOf(ionSymbol("setq"), it.toIonElement()) }, - project?.let { ionSexpOf(ionSymbol("project"), it.toIonElement()) }, - from?.let { ionSexpOf(ionSymbol("from"), it.toIonElement()) }, + ionSexpOf(ionSymbol("project"), project.toIonElement()), + ionSexpOf(ionSymbol("from"), from.toIonElement()), where?.let { ionSexpOf(ionSymbol("where"), it.toIonElement()) }, group?.let { ionSexpOf(ionSymbol("group"), it.toIonElement()) }, having?.let { ionSexpOf(ionSymbol("having"), it.toIonElement()) }, diff --git a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/TestDomain.generated.kt b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/TestDomain.generated.kt index 9da8506..6ec60da 100644 --- a/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/TestDomain.generated.kt +++ b/pig-tests/src/main/kotlin/org/partiql/pig/tests/generated/TestDomain.generated.kt @@ -773,7 +773,7 @@ class TestDomain private constructor() { metas: MetaContainer = emptyMetaContainer() ): TestDomain.ElementVariadic = TestDomain.ElementVariadic( - name = name?.asPrimitive(), + name = name.asPrimitive(), ints = ints.map { it.asPrimitive() }, metas = newMetaContainer() + metas ) @@ -838,7 +838,7 @@ class TestDomain private constructor() { metas: MetaContainer = emptyMetaContainer() ): TestDomain.RequiredVariadic = TestDomain.RequiredVariadic( - first = first?.asPrimitive(), + first = first.asPrimitive(), second = second.map { it.asPrimitive() }, metas = newMetaContainer() + metas ) @@ -973,7 +973,7 @@ class TestDomain private constructor() { metas: MetaContainer = emptyMetaContainer() ): TestDomain.RequiredOptionalVariadic = TestDomain.RequiredOptionalVariadic( - first = first?.asPrimitive(), + first = first.asPrimitive(), second = second?.asPrimitive(), third = third.map { it.asPrimitive() }, metas = newMetaContainer() + metas @@ -1047,7 +1047,7 @@ class TestDomain private constructor() { ): TestDomain.OptionalRequiredVariadic = TestDomain.OptionalRequiredVariadic( first = first?.asPrimitive(), - second = second?.asPrimitive(), + second = second.asPrimitive(), third = third.map { it.asPrimitive() }, metas = newMetaContainer() + metas ) @@ -3335,8 +3335,8 @@ class TestDomain private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("domain_level_record"), - someField?.let { ionSexpOf(ionSymbol("some_field"), it.toIonElement()) }, - anotherField?.let { ionSexpOf(ionSymbol("another_field"), it.toIonElement()) }, + ionSexpOf(ionSymbol("some_field"), someField.toIonElement()), + ionSexpOf(ionSymbol("another_field"), anotherField.toIonElement()), optionalField?.let { ionSexpOf(ionSymbol("optional_field"), it.toIonElement()) } ) @@ -4375,9 +4375,9 @@ class TestDomain private constructor() { override fun toIonElement(): SexpElement { val elements = listOfNotNull( ionSymbol("human"), - firstName?.let { ionSexpOf(ionSymbol("first_name"), it.toIonElement()) }, + ionSexpOf(ionSymbol("first_name"), firstName.toIonElement()), if(middleNames.any()) { ionSexpOf(ionSymbol("middle_names"), *middleNames.map { it.toIonElement() }.toTypedArray()) } else { null }, - lastName?.let { ionSexpOf(ionSymbol("last_name"), it.toIonElement()) }, + ionSexpOf(ionSymbol("last_name"), lastName.toIonElement()), title?.let { ionSexpOf(ionSymbol("title"), it.toIonElement()) }, parent?.let { ionSexpOf(ionSymbol("parent"), it.toIonElement()) } )