[
https://issues.apache.org/jira/browse/FLINK-40486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramin Gharib updated FLINK-40486:
---------------------------------
Description:
Scope:
- UuidType in flink-table-common, backed by a fixed 16-byte value
- LogicalTypeRoot.UUID
- DataTypes.UUID() factory
- FlinkTypeFactory mapping UuidType <-> Calcite SqlTypeName.UUID
- LogicalTypeParser: recognize the UUID keyword -> UuidType
The SQL grammar already parses UUID as both a type keyword and a
UUID '...' literal via Calcite (Parser.jj:4899, 5980), so no sql-parser
change is needed. Calcite already provides SqlTypeName.UUID (CALCITE-6738),
so no Calcite bump. The UUID() function is unrelated and stays CHAR(36).
Verifying: unit tests for the type, DataTypes factory, the type-factory
round-trip, and LogicalTypeParser parsing "UUID".
was:
Add UUID as a first-class logical type.
Scope:
- UuidType in flink-table-common, backed by a fixed 16-byte value
- LogicalTypeRoot.UUID
- DataTypes.UUID() factory
- FlinkTypeFactory mapping UuidType <-> Calcite SqlTypeName.UUID
Calcite already provides SqlTypeName.UUID (CALCITE-6738), so no Calcite bump is
needed. UUID() the function is unrelated and stays CHAR(36).
Verifying: unit tests for the type, DataTypes factory, and the type-factory
round-trip.
> Introduce the UUID logical type
> -------------------------------
>
> Key: FLINK-40486
> URL: https://issues.apache.org/jira/browse/FLINK-40486
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / API
> Reporter: Ramin Gharib
> Assignee: Ramin Gharib
> Priority: Major
>
> Scope:
> - UuidType in flink-table-common, backed by a fixed 16-byte value
> - LogicalTypeRoot.UUID
> - DataTypes.UUID() factory
> - FlinkTypeFactory mapping UuidType <-> Calcite SqlTypeName.UUID
> - LogicalTypeParser: recognize the UUID keyword -> UuidType
> The SQL grammar already parses UUID as both a type keyword and a
> UUID '...' literal via Calcite (Parser.jj:4899, 5980), so no sql-parser
> change is needed. Calcite already provides SqlTypeName.UUID (CALCITE-6738),
> so no Calcite bump. The UUID() function is unrelated and stays CHAR(36).
> Verifying: unit tests for the type, DataTypes factory, the type-factory
> round-trip, and LogicalTypeParser parsing "UUID".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)