AMashenkov commented on a change in pull request #518:
URL: https://github.com/apache/ignite-3/pull/518#discussion_r775480917
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/schema/SchemaHolderImpl.java
##########
@@ -100,12 +105,49 @@ public synchronized void onSchemaDropped(String
schemaName) {
* OnSqlTypeCreated.
* TODO Documentation https://issues.apache.org/jira/browse/IGNITE-15859
*/
- public synchronized void onSqlTypeCreated(
+ public synchronized void onTableCreated(
String schemaName,
TableImpl table
) {
IgniteSchema schema = igniteSchemas.computeIfAbsent(schemaName,
IgniteSchema::new);
+ IgniteTableImpl t = new IgniteTableImpl(createTableDescriptor(table),
table);
+
+ schema.addTable(removeSchema(schemaName, table.name()), t);
+
+ rebuild();
+ }
+
+ /**
+ * OnSqlTypeCreated.
+ * TODO Documentation https://issues.apache.org/jira/browse/IGNITE-15859
+ */
+ public synchronized void onTableUpdated(
Review comment:
Javadoc.
--
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]