Skip to content

Commit

Permalink
Prepare v0.14.4 release; move internal, top-level functions back to o…
Browse files Browse the repository at this point in the history
…riginal file (#1389)
  • Loading branch information
alancai98 authored and RCHowell committed Apr 2, 2024
1 parent 20de729 commit 9432f53
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
- @<your-username>

## [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`.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1053,7 +1072,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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -1902,6 +1903,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.
Expand Down

0 comments on commit 9432f53

Please sign in to comment.