Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializes PartiQL Value classes #1091

Merged
merged 13 commits into from
Jun 21, 2023
Merged
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Thank you to all who have contributed!
## [Unreleased]

### Added
- Adds `org.partiql.value` (experimental) package for reading/writing PartiQL
values

### Changed

Expand All @@ -42,6 +44,7 @@ Thank you to all who have contributed!

### Contributors
Thank you to all who have contributed!
- @howero
- @<your-username>

## [0.12.0] - 2023-06-14
Expand Down
2 changes: 2 additions & 0 deletions buildSrc/src/main/kotlin/partiql.versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ object Versions {
const val jmh = "0.5.3"
const val joda = "2.12.1"
const val kotlinPoet = "1.11.0"
const val kotlinxCollections = "0.3.5"
const val picoCli = "4.7.0"
const val kasechange = "1.3.0"
const val ktlint = "10.2.1"
Expand Down Expand Up @@ -76,6 +77,7 @@ object Deps {
const val joda = "joda-time:joda-time:${Versions.joda}"
const val kasechange = "net.pearx.kasechange:kasechange:${Versions.kasechange}"
const val kotlinPoet = "com.squareup:kotlinpoet:${Versions.kotlinPoet}"
const val kotlinxCollections = "org.jetbrains.kotlinx:kotlinx-collections-immutable:${Versions.kotlinxCollections}"
const val picoCli = "info.picocli:picocli:${Versions.picoCli}"
const val pig = "org.partiql:partiql-ir-generator:${Versions.pig}"
const val pigRuntime = "org.partiql:partiql-ir-generator-runtime:${Versions.pig}"
Expand Down
1 change: 1 addition & 0 deletions partiql-types/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ plugins {

dependencies {
implementation(Deps.ionElement)
implementation(Deps.kotlinxCollections)
}

publish {
Expand Down
RCHowell marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* Copyright 2022 Amazon.com, Inc. or its affiliates. All rights reserved.
RCHowell marked this conversation as resolved.
Show resolved Hide resolved
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/

package org.partiql.types

/**
* PartiQL Type Names
*/
public enum class PartiQLValueType {
BOOL,
INT8,
INT16,
INT32,
INT64,
INT,
DECIMAL,
FLOAT32,
FLOAT64,
CHAR,
STRING,
SYMBOL,
BINARY,
BYTE,
BLOB,
CLOB,
DATE,
TIME,
TIMESTAMP,
INTERVAL,
BAG,
LIST,
SEXP,
STRUCT,
NULL, // null.null
MISSING, // missing
NULLABLE_BOOL, // null.bool
NULLABLE_INT8, // null.int8
NULLABLE_INT16, // null.int16
NULLABLE_INT32, // null.int32
NULLABLE_INT64, // null.int64
NULLABLE_INT, // null.int
NULLABLE_DECIMAL, // null.decimal
NULLABLE_FLOAT32, // null.float32
NULLABLE_FLOAT64, // null.float64
NULLABLE_CHAR, // null.char
NULLABLE_STRING, // null.string
NULLABLE_SYMBOL, // null.symbol
NULLABLE_BINARY, // null.binary
NULLABLE_BYTE, // null.byte
NULLABLE_BLOB, // null.blob
NULLABLE_CLOB, // null.clob
NULLABLE_DATE, // null.date
NULLABLE_TIME, // null.time
NULLABLE_TIMESTAMP, // null.timestamp
NULLABLE_INTERVAL, // null.interval
NULLABLE_BAG, // null.bag
NULLABLE_LIST, // null.list
NULLABLE_SEXP, // null.sexp
NULLABLE_STRUCT, // null.struct
}
Loading