提交 aa68408c 编写于 作者: W wuwo

filter views when dumpTableMeta

上级 6f3cae5d
......@@ -203,9 +203,13 @@ public class DatabaseTableMeta implements TableMetaTSDB {
}
for (String schema : schemas) {
packet = connection.query("show tables from `" + schema + "`");
// filter views
packet = connection.query("show full tables from `" + schema + "` where Table_type = 'BASE TABLE'");
List<String> tables = new ArrayList<String>();
for (String table : packet.getFieldValues()) {
if("BASE TABLE".equalsIgnoreCase(table)){
continue;
}
String fullName = schema + "." + table;
if (blackFilter == null || !blackFilter.filter(fullName)) {
if (filter == null || filter.filter(fullName)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册