korlov42 commented on a change in pull request #520:
URL: https://github.com/apache/ignite-3/pull/520#discussion_r776630131
##########
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:
It is true that this patch only about races between initial table
creation and querying this table. The problem of concurrent table modification
(as well as deletion) needs to be addressed at a higher level, because there
are a dozen places which expect the table to not be modified during the query
planning/execution.
--
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]