From 6634bc04989b3fa3021a37029ea8bf8ddb9fd376 Mon Sep 17 00:00:00 2001 From: Alan Cai Date: Wed, 13 Mar 2024 15:56:07 -0700 Subject: [PATCH] Prepare v0.14.4 release; move internal, top-level functions back to original file (#1389) --- CHANGELOG.md | 22 ++++++++++++++++++- README.md | 2 +- gradle.properties | 2 +- .../physical/PhysicalPlanCompilerAsyncImpl.kt | 9 -------- .../eval/physical/PhysicalPlanCompilerImpl.kt | 9 ++++++++ 5 files changed, 32 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b80c65e56..7c61a6ba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,24 @@ Thank you to all who have contributed! ## [Unreleased] +### Added + +### Changed + +### Deprecated + +### Fixed + +### Removed + +### Security + +### Contributors +Thank you to all who have contributed! +- @ + +## [0.14.4] + ### Added - Added constrained decimal as valid parameter type to functions that take in numeric parameters. - Added async version of physical plan evaluator `PartiQLCompilerAsync`. @@ -61,6 +79,7 @@ Thank you to all who have contributed! ### Contributors Thank you to all who have contributed! +- @yliuuuu - @alancai98 ## [0.14.3] - 2024-02-14 @@ -1020,7 +1039,8 @@ breaking changes if migrating from v0.9.2. The breaking changes accidentally int ### Added Initial alpha release of PartiQL. -[Unreleased]: https://github.com/partiql/partiql-lang-kotlin/compare/v0.14.3...HEAD +[Unreleased]: https://github.com/partiql/partiql-lang-kotlin/compare/v0.14.4...HEAD +[0.14.4]: https://github.com/partiql/partiql-lang-kotlin/compare/v0.14.3...v0.14.4 [0.14.3]: https://github.com/partiql/partiql-lang-kotlin/compare/v0.14.2...v0.14.3 [0.14.2]: https://github.com/partiql/partiql-lang-kotlin/compare/v0.14.1...v0.14.2 [0.14.1]: https://github.com/partiql/partiql-lang-kotlin/compare/v0.14.0-alpha...v0.14.1 diff --git a/README.md b/README.md index 01846c3f4..2e99b55d5 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This project is published to [Maven Central](https://search.maven.org/artifact/o | Group ID | Artifact ID | Recommended Version | |---------------|-----------------------|---------------------| -| `org.partiql` | `partiql-lang-kotlin` | `0.14.3` | +| `org.partiql` | `partiql-lang-kotlin` | `0.14.4` | For Maven builds, add the following to your `pom.xml`: diff --git a/gradle.properties b/gradle.properties index 8e86068d4..822c35a7b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group=org.partiql -version=0.14.4-SNAPSHOT +version=0.14.4 ossrhUsername=EMPTY ossrhPassword=EMPTY diff --git a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerAsyncImpl.kt b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerAsyncImpl.kt index 749971238..89430245e 100644 --- a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerAsyncImpl.kt +++ b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerAsyncImpl.kt @@ -32,7 +32,6 @@ import org.partiql.errors.Property import org.partiql.errors.PropertyValueMap import org.partiql.lang.ast.IsOrderedMeta import org.partiql.lang.ast.SourceLocationMeta -import org.partiql.lang.ast.UNKNOWN_SOURCE_LOCATION import org.partiql.lang.ast.sourceLocation import org.partiql.lang.domains.PartiqlPhysical import org.partiql.lang.domains.staticType @@ -1874,14 +1873,6 @@ internal class PhysicalPlanCompilerAsyncImpl( ) } -internal val MetaContainer.sourceLocationMeta get() = this[SourceLocationMeta.TAG] as? SourceLocationMeta -internal val MetaContainer.sourceLocationMetaOrUnknown get() = this.sourceLocationMeta ?: UNKNOWN_SOURCE_LOCATION - -internal fun StaticType.getTypes() = when (val flattened = this.flatten()) { - is AnyOfType -> flattened.types - else -> listOf(this) -} - /** * Represents an element in a select list that is to be projected into the final result. * i.e. an expression, or a (project_all) node. diff --git a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerImpl.kt b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerImpl.kt index 98d3a27c2..24f66599f 100644 --- a/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerImpl.kt +++ b/partiql-lang/src/main/kotlin/org/partiql/lang/eval/physical/PhysicalPlanCompilerImpl.kt @@ -26,6 +26,7 @@ import org.partiql.errors.Property import org.partiql.errors.PropertyValueMap import org.partiql.lang.ast.IsOrderedMeta import org.partiql.lang.ast.SourceLocationMeta +import org.partiql.lang.ast.UNKNOWN_SOURCE_LOCATION import org.partiql.lang.ast.sourceLocation import org.partiql.lang.domains.PartiqlPhysical import org.partiql.lang.domains.staticType @@ -1885,6 +1886,14 @@ internal class PhysicalPlanCompilerImpl( ) } +internal val MetaContainer.sourceLocationMeta get() = this[SourceLocationMeta.TAG] as? SourceLocationMeta +internal val MetaContainer.sourceLocationMetaOrUnknown get() = this.sourceLocationMeta ?: UNKNOWN_SOURCE_LOCATION + +internal fun StaticType.getTypes() = when (val flattened = this.flatten()) { + is AnyOfType -> flattened.types + else -> listOf(this) +} + /** * Represents an element in a select list that is to be projected into the final result. * i.e. an expression, or a (project_all) node.