dimas-b commented on code in PR #2653:
URL: https://github.com/apache/polaris/pull/2653#discussion_r2372933618
##########
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:
Support for arbitrary databases is basically missing ATM, I think.
As for "supported" database, could we add backend-specific "does not exist"
logic to `DatabaseType`?
--
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]