lowka commented on code in PR #3187:
URL: https://github.com/apache/ignite-3/pull/3187#discussion_r1494475146
##########
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:
>you missed the very first question. Should if clause be removed?
No, it should not. The same table/view within a query have the same id.
--
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]