tkalkirill commented on code in PR #13324:
URL: https://github.com/apache/ignite/pull/13324#discussion_r3543967256


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/IgniteSqlValidator.java:
##########
@@ -152,6 +152,13 @@ public IgniteSqlValidator(
         validateUpdateFields(call);
 
         super.validateUpdate(call);
+
+        SqlSelect srcSelect = call.getSourceSelect();
+        SqlValidatorScope scope = getWhereScope(srcSelect);

Review Comment:
   It seems more correct to use the `WHERE` clause, because we need to work 
only with aliases of the table being updated, rather than the entire `SELECT` 
statement, which might include auxiliary aliases.



-- 
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]

Reply via email to