singhpk234 commented on code in PR #1371:
URL: https://github.com/apache/polaris/pull/1371#discussion_r2059597667
##########
extension/persistence/relational-jdbc/src/main/java/org/apache/polaris/extension/persistence/relational/jdbc/JdbcMetaStoreManagerFactory.java:
##########
@@ -106,12 +109,16 @@ private void initializeForRealm(
}
private DatasourceOperations getDatasourceOperations(boolean isBootstrap) {
- DatasourceOperations databaseOperations = new
DatasourceOperations(dataSource);
+ // TODO: remove when multiple dataSources are supported.
+ if (dataSources.size() > 1) {
+ throw new IllegalStateException("More than one dataSources configured");
+ }
+ DatasourceOperations databaseOperations = new
DatasourceOperations(dataSources.getFirst());
if (isBootstrap) {
- // TODO: see if we need to take script from Quarkus or can we just
- // use the script committed in the repo.
try {
-
databaseOperations.executeScript("scripts/postgres/schema-v1-postgres.sql");
+ DatabaseType databaseType = databaseOperations.detect();
Review Comment:
I see, my thought was that i don't wanna go into Connection handling
business in MetaStoreFactory hence i moved that DSops initially, I don't feel
strongly about it though.
--
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]