You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Zhuravkov (Jira)" <ji...@apache.org> on 2025/04/10 12:07:00 UTC
[jira] [Created] (IGNITE-25091) Sql. Migrate to calcite's UUID
Maksim Zhuravkov created IGNITE-25091:
-----------------------------------------
Summary: 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
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)