vldpyatkov commented on a change in pull request #115:
URL: https://github.com/apache/ignite-3/pull/115#discussion_r623815383



##########
File path: 
modules/schema/src/main/java/org/apache/ignite/internal/schema/SchemaManager.java
##########
@@ -69,8 +171,23 @@ public SchemaDescriptor schema(UUID tableId) {
     public SchemaDescriptor schema(UUID tableId, long ver) {
         assert ver >= 0;
 
-        assert schema.version() == ver;
+        SchemaDescriptor schema = schemes.get(tableId);
+
+        if (schema != null) {
+            assert ver <= schema.version();
+
+            if (ver == schema.version())
+                return schema;
+
+            return (SchemaDescriptor)ByteUtils.fromBytes(
+                vaultManager.get(ByteArray.fromString(INTERNAL_PREFIX
+                    //Tbale id

Review comment:
       Removed this comment.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to