This is an automated email from the ASF dual-hosted git repository.

alex-plekhanov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 2272b310a71 IGNITE-28888 SQL Calcite: Add test for literal to UUID 
conversion (#13363)
2272b310a71 is described below

commit 2272b310a715dd2052db809265038f455bbe73ad
Author: Aleksey Plekhanov <[email protected]>
AuthorDate: Tue Jul 14 13:41:03 2026 +0300

    IGNITE-28888 SQL Calcite: Add test for literal to UUID conversion (#13363)
---
 .../query/calcite/planner/DataTypesPlannerTest.java          | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git 
a/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/DataTypesPlannerTest.java
 
b/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/DataTypesPlannerTest.java
index 22af50db1e0..140665b4ca4 100644
--- 
a/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/DataTypesPlannerTest.java
+++ 
b/modules/calcite/src/test/java/org/apache/ignite/internal/processors/query/calcite/planner/DataTypesPlannerTest.java
@@ -19,6 +19,7 @@ package 
org.apache.ignite.internal.processors.query.calcite.planner;
 
 import java.util.Arrays;
 import java.util.List;
+import java.util.UUID;
 import java.util.function.Predicate;
 import org.apache.calcite.rel.RelNode;
 import org.apache.calcite.rel.core.SetOp;
@@ -127,4 +128,15 @@ public class DataTypesPlannerTest extends 
AbstractPlannerTest {
         assertPlan("SELECT NULL::DATE UNION ALL SELECT TIMESTAMP '2025-07-04 
10:00:00'", createSchema(),
             rel -> rel.fieldIsNullable(0));
     }
+
+    /** */
+    @Test
+    public void testLiteralToUuidConversion() throws Exception {
+        IgniteSchema schema = createSchema(createTable("T", 
IgniteDistributions.single(), "UID", SqlTypeName.UUID));
+
+        UUID uuid1 = UUID.randomUUID();
+        UUID uuid2 = UUID.randomUUID();
+
+        assertPlan("SELECT * FROM t WHERE uid in ('" + uuid1 + "', '" + uuid2 
+ "')", schema, isTableScan("T"));
+    }
 }

Reply via email to