Vladsz83 commented on a change in pull request #9826:
URL: https://github.com/apache/ignite/pull/9826#discussion_r825860127
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/schema/CacheTableDescriptorImpl.java
##########
@@ -309,7 +308,11 @@ else if (affFields.isEmpty())
Object dfltVal = TypeUtils.toInternal(dataCtx, desc.defaultValue());
- return rexBuilder.makeLiteral(dfltVal, desc.logicalType(typeFactory),
false);
+ if (dfltVal instanceof UUID)
+ return rexBuilder.makeCast(typeFactory.createUUIDType(),
+ rexBuilder.makeLiteral(dfltVal.toString(),
desc.logicalType(typeFactory), false));
+
+ return rexBuilder.makeLiteral(dfltVal, desc.logicalType(typeFactory),
true);
Review comment:
Done. But not sure. Many arguments to pass into the new method.
--
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]