Narcasserun commented on code in PR #10526:
URL: https://github.com/apache/dolphinscheduler/pull/10526#discussion_r903195147
##########
dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/client/CommonDataSourceClient.java:
##########
@@ -101,6 +117,140 @@ public void checkClient() {
}
}
+ @Override
+ public List<String> getDatabaseList(String databasePattern) {
+ return
this.jdbcTemplate.queryForList(getDatabaseListSql(databasePattern),
String.class);
+ }
+
+ protected String getDatabaseListSql(String databasePattern) {
+ throw new UnsupportedOperationException("NOT_SUPPORT");
+ }
+
+ @Override
+ public List<String> getTableList(String dbName, String schemaName, String
tablePattern) {
+ return this.jdbcTemplate.queryForList(getTableListSql(dbName,
schemaName, tablePattern), String.class);
+ }
+
+ protected String getTableListSql(String dbName, String schemaName, String
tablePattern) {
+ throw new UnsupportedOperationException("NOT_SUPPORT");
+ }
+
+ @Override
+ public List<Map<String, Object>> getTableStruct(String dbName, String
schemaName, String tableName) {
+ throw new UnsupportedOperationException("NOT_SUPPORT");
+ }
+
+ @Override
+ public MutableTriple<Map<String, String>, List<Map<String, Object>>,
List<Map<String, String>>> executeSql(
Review Comment:
There will be other definitions for pojo
--
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]