lowka commented on code in PR #1734:
URL: https://github.com/apache/ignite-3/pull/1734#discussion_r1125438775
##########
modules/runner/src/integrationTest/java/org/apache/ignite/internal/sql/engine/ItUuidTest.java:
##########
@@ -239,7 +238,7 @@ public void testUuidTypeCoercion() {
@Test
public void testTypeCoercionInDml() {
- sql("INSERT INTO t VALUES (1, ?)", UUID_1.toString());
+ sql("INSERT INTO t (id, uuid_key) VALUES (1, ?)", UUID_1.toString());
Review Comment:
@ygerzhedovich
It should not work because types in VALUES are do not match:
`
sql("CREATE TABLE integers(i INTEGER primary key, v2 INTEGER)");
sql("INSERT INTO integers VALUES (1, null), (4, '4')"); //1
INSERT INTO integers VALUES (2, 2), (3, '3') // 2
`
Both 1 and 2 Trigger Values passed to VALUES operator must have compatible
types.
But in case of a custom data type there is a bug that prevents this error
from triggering. I already have a fix and file an issue later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]