tysaito commented on a change in pull request #4404: Added support for Vertica as data source URL: https://github.com/apache/incubator-pinot/pull/4404#discussion_r301700158
########## File path: thirdeye/thirdeye-pinot/src/main/java/org/apache/pinot/thirdeye/datasource/sql/SqlResponseCacheLoader.java ########## @@ -133,6 +137,35 @@ public SqlResponseCacheLoader(Map<String, Object> properties) throws Exception { } } + // Init Vertica datasources + if (properties.containsKey(VERTICA)) { + List<Map<String, Object>> verticaMapList = ConfigUtils.getList(properties.get(VERTICA)); + for (Map<String, Object> objMap: verticaMapList) { + Map<String, String> dbNameToURLMap = (Map)objMap.get(DB); + String verticaUser = (String)objMap.get(USER); + String verticaPassword = getPassword(objMap); + String verticaDriver = (String)objMap.get(DRIVER); + + for (Map.Entry<String, String> entry: dbNameToURLMap.entrySet()) { + DataSource dataSource = new DataSource(); + dataSource.setInitialSize(INIT_CONNECTIONS); + dataSource.setMaxActive(MAX_CONNECTIONS); + System.out.println(verticaUser); Review comment: Thanks for the review @jihaozh. I removed that line. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org