fix(dameng): separate materialized view metadata
This commit is contained in:
1 parent
ff810f3058
commit
73120883b6
15 files changed
+475
-58
No files matched your search
@@ -27,6 +27,10 @@ public interface DatabaseAgent {
|
||||
|
||||
List<TableInfo> listTables(String schema);
|
||||
|
||||
default List<TableInfo> listTables(String schema, List<String> objectTypes) {
|
||||
return listTables(schema);
|
||||
}
|
||||
|
||||
default List<ObjectInfo> listObjects(String schema) {
|
||||
List<ObjectInfo> result = new ArrayList<>();
|
||||
for (TableInfo table : listTables(schema)) {
|
||||
|
||||
@@ -109,7 +109,7 @@ public final class JsonRpcServer {
|
||||
}
|
||||
if (AgentProtocol.METHOD_LIST_TABLES.equals(method)) {
|
||||
switchCatalog(params);
|
||||
return agent.listTables(params.get("schema").getAsString());
|
||||
return agent.listTables(params.get("schema").getAsString(), stringListOrNull(params, "object_types"));
|
||||
}
|
||||
if (AgentProtocol.METHOD_LIST_OBJECTS.equals(method)) {
|
||||
switchCatalog(params);
|
||||
|
||||
Reference in new issue
Block a user