fix: 支持 es8

This commit is contained in:
taojinlong 2022-04-02 22:02:58 +08:00
parent 77a5ba4baf
commit 822cdb2c34

View File

@ -239,6 +239,11 @@ public class EsProvider extends DatasourceProvider {
tableDesc.setName(row[0]);
tables.add(tableDesc);
}
if (row.length == 4 && row[2].contains("TABLE") && row[3].equalsIgnoreCase("INDEX")) {
TableDesc tableDesc = new TableDesc();
tableDesc.setName(row[1]);
tables.add(tableDesc);
}
}
return tables;
}