fix bug BASE TABLE as table name (#4217)

This commit is contained in:
gongchangyou
2022-08-11 10:41:01 +08:00
committed by GitHub
parent eee73dc4b1
commit 3dc86330a8

View File

@@ -209,6 +209,7 @@ public class DatabaseTableMeta implements TableMetaTSDB {
for (String schema : schemas) {
// filter views
packet = connection.query("show full tables from `" + schema + "` where Table_type = 'BASE TABLE'");
columnSize = packet.getFieldDescriptors().size();
int tableNameColumnIndex = 0; // default index is 0
List<String> tables = new ArrayList<>();
for (int line = 0; line < packet.getFieldValues().size() / columnSize; line++) {