AMashenkov commented on code in PR #2857:
URL: https://github.com/apache/ignite-3/pull/2857#discussion_r1410542506
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/prepare/IgniteSqlValidator.java:
##########
@@ -440,49 +531,41 @@ public void validateAggregateParams(SqlCall aggCall,
/** {@inheritDoc} */
@Override
public RelDataType deriveType(SqlValidatorScope scope, SqlNode expr) {
- checkTypesInteroperability(scope, expr);
-
- RelDataType dataType = super.deriveType(scope, expr);
-
- // If type of dynamic parameter has not been inferred, use a type of
its value.
- RelDataType paramType = expr instanceof SqlDynamicParam
- ? getDynamicParamType((SqlDynamicParam) expr) : null;
+ if (expr instanceof SqlDynamicParam) {
+ return deriveDynamicParamType((SqlDynamicParam) expr);
+ } else {
Review Comment:
```suggestion
}
```
--
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]