AMashenkov commented on code in PR #3187:
URL: https://github.com/apache/ignite-3/pull/3187#discussion_r1497570698


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/mapping/QuerySplitter.java:
##########
@@ -188,12 +191,13 @@ public IgniteRel visit(IgniteTableScan rel) {
         IgniteTable table = rel.getTable().unwrap(IgniteTable.class);
 
         assert table != null;
+        long sourceId = idGenerator.nextId();
 
         if (curr.seenRelations.add(table.id())) {
-            curr.tables.add(table);
+            curr.tables.put(sourceId, table);

Review Comment:
   But table/view may have different sourceId? e.g.  if they occurs twice 
within same query.
   Let's add a comment with explanation, why this behaviour is correct.



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