[
https://issues.apache.org/jira/browse/IGNITE-25091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Orlov updated IGNITE-25091:
--------------------------------------
Fix Version/s: 3.1
> Sql. Migrate to calcite's UUID
> ------------------------------
>
> Key: IGNITE-25091
> URL: https://issues.apache.org/jira/browse/IGNITE-25091
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Maksim Zhuravkov
> Assignee: Konstantin Orlov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.1
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Calcite 1.39 introduced the UUID data type (difference with Apache Ignite's
> UUID):
> * It has its own literal (does not work, there is no RexLiteral for UUID yet)
> * It support implicit casts to CHAR/BINARY types and vice versa.
> These examples work in vanilla calcite (SqlValidatorTest):
> {noformat}
> sql("SELECT CAST(UUID '10000000-2000-3000-4000-500000000000' as
> varbinary)").ok();
> sql("SELECT CAST(col as UUID) FROM ( VALUES (x'00') ) t(col)").ok();
> sql("SELECT CASE WHEN 1 > 0 THEN UUID
> '10000000-2000-3000-4000-500000000000' ELSE col END FROM ( VALUES (x'00') )
> t(col)").ok();
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)