zstan commented on a change in pull request #520:
URL: https://github.com/apache/ignite-3/pull/520#discussion_r776175811
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/schema/SqlSchemaManagerImpl.java
##########
@@ -64,6 +76,30 @@ public SchemaPlus schema(@Nullable String schema) {
return schema != null ? calciteSchema.getSubSchema(schema) :
calciteSchema;
}
+ /** {@inheritDoc} */
+ @Override
+ @NotNull
+ public InternalIgniteTable tableById(IgniteUuid id) {
+ ensureTableUpToDate(id);
+
+ InternalIgniteTable table = tablesById.get(id);
Review comment:
what the goal of _tablesById_ structure ? i found 3 usages and 2 of them
in listeners, u can easily return table from _ensureTableUpToDate_ isn`t it ?
--
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]