dimas-b commented on code in PR #2653:
URL: https://github.com/apache/polaris/pull/2653#discussion_r2373188062


##########
persistence/relational-jdbc/src/main/java/org/apache/polaris/persistence/relational/jdbc/JdbcBasePersistenceImpl.java:
##########
@@ -736,6 +737,9 @@ static int loadSchemaVersion(DatasourceOperations 
datasourceOperations) {
       return schemaVersion.getFirst().getValue();
     } catch (SQLException e) {
       LOGGER.error("Failed to load schema version due to {}", e.getMessage(), 
e);
+      if (fallbackOnDoesNotExist && e.getMessage().contains("does not exist")) 
{
+        return SchemaVersion.MINIMUM.getValue();
+      }

Review Comment:
   Isolating database-specific logic for this change is the only concern I have 
with this PR.



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

Reply via email to