You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "xtern (via GitHub)" <gi...@apache.org> on 2024/08/20 07:53:23 UTC
[PR] IGNITE-22779 [ignite-3]
xtern opened a new pull request, #4251:
URL: https://github.com/apache/ignite-3/pull/4251
https://issues.apache.org/jira/browse/IGNITE-22779
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-22779 Sql. Relax type checking for dynamic parameters to match type checking for literals [ignite-3]
Posted by "lowka (via GitHub)" <gi...@apache.org>.
lowka commented on code in PR #4251:
URL: https://github.com/apache/ignite-3/pull/4251#discussion_r1727142866
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/IgniteTypeCoercion.java:
##########
@@ -762,7 +763,10 @@ private boolean validateCoerceColumn(SqlDynamicParam dynamicParam, RelDataType t
// TODO: https://issues.apache.org/jira/browse/IGNITE-19721 - move this check to SqlValidator (if possible).
private void validateAssignment(SqlDynamicParam node, RelDataType targetType, ContextType ctxType, IgniteSqlValidator validator) {
RelDataType paramType = validator.resolveDynamicParameterType(node, targetType);
- boolean compatible = TypeUtils.typeFamiliesAreCompatible(typeFactory, targetType, paramType);
+
+ boolean compatible = TypeUtils.typeFamiliesAreCompatible(typeFactory, targetType, paramType)
Review Comment:
If `TypeUtils.typeFamiliesAreCompatible ` is going to used together with `IgniteCustomAssignmentsRules` , then it is better to extract them into a separate method that conditionally applies `IgniteCustomAssignmentsRules `.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-22779 Sql. Relax type checking for dynamic parameters to match type checking for literals [ignite-3]
Posted by "lowka (via GitHub)" <gi...@apache.org>.
lowka commented on code in PR #4251:
URL: https://github.com/apache/ignite-3/pull/4251#discussion_r1727142866
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/IgniteTypeCoercion.java:
##########
@@ -762,7 +763,10 @@ private boolean validateCoerceColumn(SqlDynamicParam dynamicParam, RelDataType t
// TODO: https://issues.apache.org/jira/browse/IGNITE-19721 - move this check to SqlValidator (if possible).
private void validateAssignment(SqlDynamicParam node, RelDataType targetType, ContextType ctxType, IgniteSqlValidator validator) {
RelDataType paramType = validator.resolveDynamicParameterType(node, targetType);
- boolean compatible = TypeUtils.typeFamiliesAreCompatible(typeFactory, targetType, paramType);
+
+ boolean compatible = TypeUtils.typeFamiliesAreCompatible(typeFactory, targetType, paramType)
Review Comment:
If `TypeUtils.typeFamiliesAreCompatible ` is going to used together with `IgniteCustomAssignmentsRules` , then it is better to extract them into a separate method that conditionally checks for `IgniteCustomAssignmentsRules `.
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] IGNITE-22779 Sql. Relax type checking for dynamic parameters to match type checking for literals [ignite-3]
Posted by "xtern (via GitHub)" <gi...@apache.org>.
xtern merged PR #4251:
URL: https://github.com/apache/ignite-3/pull/4251
--
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: notifications-unsubscribe@ignite.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org