This commit is contained in:
Looly
2020-12-23 16:30:31 +08:00
parent 9a181facc2
commit 718c6f48ab
3 changed files with 9 additions and 3 deletions

View File

@@ -154,7 +154,12 @@ public class HandleHelper {
row.put(meta.getColumnLabel(i), getColumnValue(rs, i, type, null));
}
if (withMetaInfo) {
row.setTableName(meta.getTableName(1));
try {
row.setTableName(meta.getTableName(1));
} catch (SQLException ignore){
//issue#I2AGLU@Gitee
// Hive等NoSQL中无表的概念此处报错跳过。
}
row.setFieldNames(row.keySet());
}
return row;