weibin0516 commented on a change in pull request #902: KYLIN-3832 Query
pushdown support postgresql
URL: https://github.com/apache/kylin/pull/902#discussion_r341465700
##########
File path:
datasource-sdk/src/main/java/org/apache/kylin/sdk/datasource/adaptor/PostgresqlAdaptor.java
##########
@@ -34,7 +35,12 @@ public PostgresqlAdaptor(AdaptorConfig config) throws
Exception {
public List<String> listDatabases() throws SQLException {
List<String> ret = new ArrayList<>();
try (Connection con = getConnection()) {
- ret.add(con.getCatalog());
+ DatabaseMetaData metaData = con.getMetaData();
Review comment:
Should the implementation here be consistent with
`PostgresqlJdbcMetadata#listDatabases `?
----------------------------------------------------------------
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]
With regards,
Apache Git Services